This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Warning policy?


According to Kamil Iskra:
> In my experience, unreachable code is always a result of an
> oversight on my side.

But sometimes it's a result of avoiding #ifdefs for conditional
execution, and that's not a bad thing:

   static const int debug = 0;
   /* ... */
   if (debug) { fprintf(error, "stuff\n"); }

-- 
Chip Salzenberg      - a.k.a. -      <chip@perlsupport.com>
      "When do you work?"   "Whenever I'm not busy."


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]