BUG? weird unused variable warnings compiling XEmacs src/redisplay.c
Skip Montanaro
skip@calendar.com
Sun Nov 16 08:55:00 GMT 1997
I'm compiling XEmacs 20.3-pre3 right now. On my Linux system egcs (11/14
snapshot) is complaining:
src/redisplay.c: In function `add_emchar_rune':
src/redisplay.c:926: warning: unused variable `buf'
src/redisplay.c: In function `add_emchar_rune':
src/redisplay.c:926: warning: unused variable `buf'
src/redisplay.c: In function `add_blank_rune':
src/redisplay.c:1071: warning: unused variable `buf'
src/redisplay.c: In function `add_blank_rune':
src/redisplay.c:1071: warning: unused variable `buf'
src/redisplay.c: In function `add_glyph_rune':
src/redisplay.c:1654: warning: unused variable `buf'
src/redisplay.c:1674: warning: unused variable `buf'
src/redisplay.c: In function `add_glyph_rune':
src/redisplay.c:1654: warning: unused variable `buf'
src/redisplay.c:1674: warning: unused variable `buf'
but when I looked at the code, all occurrences looked similar to the
following:
struct buffer *buf = XBUFFER (WINDOW_BUFFER (w));
rb.bufpos = bytind_to_bufpos (buf, data->bi_bufpos);
which certainly appears as if buf is being used. Perhaps it's an egcs
bug...
Skip Montanaro | Musi-Cal: http://concerts.calendar.com/
skip@calendar.com | Python: http://www.python.org/
(518)372-5583 | XEmacs: http://www.automatrix.com/~skip/xemacs/tip.html
More information about the Gcc-bugs
mailing list