Mailinglist Archive: opensuse-buildservice (262 mails)

< Previous Next >
Re: [opensuse-buildservice] Does osc modify gcc build flags?
  • From: Dave Plater <dave.plater@xxxxxxxxxxx>
  • Date: Wed, 12 Aug 2009 12:26:21 +0200
  • Message-id: <4A8298CD.2050200@xxxxxxxxxxx>
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@xxxxxxxxxxxx
For additional commands, e-mail: opensuse-buildservice+help@xxxxxxxxxxxx

< Previous Next >