看板 DFBSD_submit 關於我們 聯絡資訊
Kevin M. Kilbride wrote: > Secondly, it not only warns about _stripping_ qualifiers, but, in > direct violation of the standard, it also warns about the > explicitly-permitted conversion of an unqualified pointer to a > qualified one. Actually, in playing with this further, I can see that it is the base GCC compiler that emits this warning, not the -Wcast-qual option. This is much worse. The warning cannot be suppressed, even though it is warning about obviously permitted behavior. Even if the GNU people fix it, all existing versions of the compiler will complain about it, crippling the warnings facility and necessitating dependence upon bugged behavior of their -Wcast-qual option to get code to compile warnings-free. Really bad. Ironically, g++ does not suffer from this problem. -sigh-