This is the mail archive of the gcc-bugs@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]

BUG? weird unused variable warnings compiling XEmacs src/redisplay.c


bytind_to_bufpos is a macro that does heavy lifting when you
compile with MULE, but defaults to just the buffer position in
the non-MULE case since chars are bytes.  The non-MULE case doesn't
use for the buffer argument.  So the compiler is correct, though
the warning isn't useful in this context.

You can save a lot of time by just beating your head against the
wall instead of turning on compiler warnings.  On the other hand
if you're already beating your head against the wall (i.e. can't
figure out why something is broken) then turning on the warnings
won't make your head feel any worse. :-/



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