[Simh] Warning when compiling with Intel C

Toby Thain toby at smartgames.ca
Mon Jul 16 08:57:35 EDT 2007


On 16-Jul-07, at 9:29 AM, Harald Arnesen wrote:

> I tried compiling simh 3.7-2 with Intel's C compiler for Linux.  
> Seems to
> work fine, although I haven't tried the binaries yet.
>
> However, this compiler shows a warning that GCC misses:
>
> sim_timer.c(526): warning #187: use of "=" where "==" may have been  
> intended
>       else if ((c = '%') && (val > 0) && (val < 100))

The parentheses are suppressing the warning in gcc (it's a *feature* :)

--T

>                ^
> -- 
> Hilsen Harald.
>
> _______________________________________________
> Simh mailing list
> Simh at trailing-edge.com
> http://mailman.trailing-edge.com/mailman/listinfo/simh




More information about the Simh mailing list