Apache OpenOffice (AOO) Bugzilla – Issue 71226
Warnings: GNU/Linux SPARC cppcanvas
Last modified: 2006-12-05 09:14:35 UTC
A workaround exists in cppcanvas/source/mtfrenderer/textaction.cxx for a bogus warning with gcc4.1.1 but I am using gcc4.1.2 - patch attached. -#if __GNUC__ == 4 && __GNUC_MINOR__ == 1 && __GNUC_PATCHLEVEL__ == 1 +#if __GNUC__ == 4 && __GNUC_MINOR__ == 1 && 0 < __GNUC_PATCHLEVEL__ < 3
Created attachment 40351 [details] allow gcc4.1.2 warnings are errors
start
sb: is it OK to include gcc4.1.2 in this workaround - I am just not sure why it is limited to 4.1.1?
Strictly speaking, 4.1.2 does not yet exist, so it is unclear whether that issue will be fixed in 4.1.2. Anyway, I guess nobody had tested with 4.1.2 yet and the #if was intended to be as specific as possible (i.e., it had empirically only been tested to fail with 4.1.1, so that was used for discrimination). However, if it is clear that it also fails with 4.1.2, I would assume that it at least also failed with 4.1.0 (and maybe also will fail with 4.1.3 upward in the future). And, given the fact that the attached patch is wrong (a < b < c does not do in C++ what one might expect), I would simplify it to #if __GNUC__ == 4 && __GNUC_MINOR__ == 1 && __GNUC_PATCHLEVEL__ <= 2
sb: thanks, I will use the simplified version. I accept the patch is wrong, but "a < b < c" actually does work here, today ;)
sb: i see what you mean - this works for me too :) 3 < __GNUC_PATCHLEVEL__ < 2
committed in cws_src680_jw2
re-asign for qa
.
Integrated in m195