Assorted warnings while building 2.5.73
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: duplicateconst' drivers/video/matrox/matroxfb_g450.c:130: warning: duplicateconst'
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]
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: duplicateconst' drivers/video/matrox/matroxfb_g450.c:130: warning: duplicateconst'
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