Selectiv on/off-turning of warnings
Mo McKinlay
mmckinlay@labs.interopen.org
Wed Mar 22 17:21:00 GMT 2000
# I think there would be a long debate whether it is reasonable. For one
# thing, some people claim that #pragma is not reasonable. Since the
# standard says a compiler can do anything it wants when it sees a
# #pragma, I believe some version of gcc used to invoke Emacs when it
# saw a #pragma :-)
Certainly the Borland compilers rely heavily on #pragmas all sorts of
things - mostly for function-local warning selection, but it does cover
other bases too, such as controlling precompiled headers (#pragma
hdrstop).
My personal view is that there should never be #pragmas implemented that
affect code generation, because it doesn't help portability issues any
(#pragma itself doesn't, but relying on it to alter code generation
behavior would be much worse, IMVHO).
--
Mo McKinlay T: +44 (0) 709 22 55 05 x1
Chief Software Architect F: +44 (0) 709 22 55 05 x3
inter/open E: mmckinlay@labs.interopen.org
A division of Bekon Marketing Limited W: http://www.interopen.org
More information about the Gcc
mailing list