This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
BUG? weird unused variable warnings compiling XEmacs src/redisplay.c
- To: xemacs-beta at xemacs dot org, egcs-bugs at cygnus dot com
- Subject: BUG? weird unused variable warnings compiling XEmacs src/redisplay.c
- From: Kyle Jones <kyle_jones at wonderworks dot com>
- Date: Sun, 16 Nov 1997 12:43:30 -0500 (EST)
- References: <199711161655.LAA24367@dolphin.automatrix.com>
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. :-/