[IRCServices Coding] Brief question

Andrew Church achurch at achurch.org
Tue Aug 23 13:08:22 PDT 2005


>Looking through some stuff, I've noticed this:
>
>#ifdef CLEAN_COMPILE
>         shutdown_unused = shutdown_unused;
>#endif
>
>floating around. Can someone please tell me what the heck the point of 
>it is? Curiosity gets the better of me :p

     This is just to keep the compiler from warning about unused parameters
to functions.  (I develop with -Wall and -Werror, so those warnings,
harmless as they are, stop compilation.)  It turns out, though, that GCC4
doesn't warn about those anymore even with -Wall, so I've removed those
constructs for version 5.1.

  --Andrew Church
    achurch at achurch.org
    http://achurch.org/