Mail Archives: djgpp/1998/10/29/21:48:29
Ole Laursen wrote:
> I compile using the -Wall switch, so the compiler correctly tells me
> that "value computed is not used", but I don't have anything to use it
> for, as the constructor will take care off putting the pointer to the
> struct in the right list. Believe me, it can be very annoying to get ten
> of those warnings every time I recompile the code, so I just wondered if
> it is somehow possible to turn off the warning for only a few lines of
> code (I don't want to disable it entirely), or to fix the problem in
> another way (I suspect I might be doing something wrong by just ignoring
> the return value).
I'm not sure if this applies in C++, but in C you can disable GCC's
warning about an unused value or variable by casting it to `void'.
--
Nate Eldredge
nate AT cartsys DOT com
- Raw text -