On 08/12/2009 11:08 AM, Marcus Meissner wrote:
On Wed, Aug 12, 2009 at 11:05:43AM +0200, Dave Plater wrote:
On 08/12/2009 01:23 AM, Philipp Thomas wrote:
On Tue, 11 Aug 2009 10:58:14 +0200, you wrote:
Hi, I have a package that when building with osc gives a warning about uninitialized variables being used but rpmbuild doesn't. Is there a way to receive these warnings using make?
If you only want the warnings, make sure optimization is turned on (-O2 or higher) and -Wall is passed to the compiler.
Philipp
I've used -O2 -Wall -Wextra and I still can't get the uninitialized variables to come up locally. Rpmbuild uses those switches by default, it's still only osc which throws the "is used uninitialized" warning. There must be something that osc does that plain rpmbuild doesn't.
The compiler logfile is not post-processed diuring rpmbuild, you will probably need to look for "... is used uninitialized" in the logfile.
Ciao, Marcus
I've tried that, there's "may be used uninitialized" but no "is used uninitialized" messages. Regards Dave P -- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-buildservice+help@opensuse.org