Skip to contentSkip to conversation

Assorted warnings while building 2.5.73

DISCUSSION Petr Vandrovec 2 participants 2 messages Jun 25, 2003

lore
Share & tools
lore
#0 lore raw
Quoted 3 lines · J.C. Wren

drivers/video/matrox/matroxfb_g450.c: In function `g450_compute_bwlevel':
drivers/video/matrox/matroxfb_g450.c:129: warning: duplicate const' drivers/video/matrox/matroxfb_g450.c:130: warning: duplicate const'

Fix min/max macros and/or learn gcc that "const typeof(x)" where x is already const type is OK. Or I can code it with simple if(), but why we have min/max macros then?

Is there some __attribute__((-Wno-duplicate-const)) ?
Petr Vandrovec [email protected]

#1 lore raw
Quoted 5 lines · Petr Vandrovec
Quoted 3 lines · J.C. Wren

drivers/video/matrox/matroxfb_g450.c: In function `g450_compute_bwlevel':
drivers/video/matrox/matroxfb_g450.c:129: warning: duplicate const' drivers/video/matrox/matroxfb_g450.c:130: warning: duplicate const'

Quoted 9 lines

Fix min/max macros and/or learn gcc that "const typeof(x)" where x is already const type is OK. Or I can code it with simple if(), but why we have min/max macros then?

Is there some __attribute__((-Wno-duplicate-const)) ?
Petr Vandrovec [email protected]

Or use a newer compiler that has this fixed, or use min_t()/max_t() instead.

Signature · 2 lines
Bob Miller					Email: [email protected]
Open Source Development Lab			Phone: 503.626.2455 Ext. 17