RFC: vmware registration
Pete Zaitcev
zaitcev at redhat.com
Fri May 27 23:48:50 UTC 2011
On Fri, 27 May 2011 09:24:41 +0200
Jim Meyering <jim at meyering.net> wrote:
> >> I've included a patch below that makes it build when configured like this:
> >>
> >> ./configure --enable-gcc-warnings
> >
> > This only makes it treat warnings as errors for me.
> It works by defining the two Makefile variables used here:
> (in Makefile.am)
>
> AM_CFLAGS = $(WARN_CFLAGS) $(WERROR_CFLAGS)
>[...]
> This should do the right thing:
>
> ./configure --enable-gcc-warnings && make && make check
Still no const-discard warnings. I made sure to run make distcleand and
sh autogen.sh, too. Here's the gcc command that is generated (from
Makefile.am) and executed:
gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -Ilib -I./lib -Wall -W -Wformat-y2k -Wformat-security -Winit-self -Wmissing-include-dirs -Wunused -Wunknown-pragmas -Wstrict-aliasing -Wfloat-equal -Wshadow -Wpointer-arith -Wbad-function-cast -Wcast-align -Wwrite-strings -Wstrict-prototypes -Wold-style-definition -Wmissing-prototypes -Wmissing-declarations -Wmissing-format-attribute -Wpacked -Winvalid-pch -Wvolatile-register-var -Wdisabled-optimization -Woverlength-strings -Wbuiltin-macro-redefined -Wmudflap -Wpacked-bitfield-compat -Wsync-nand -Wattributes -Wcoverage-mismatch -Wmultichar -Wno-missing-field-initializers -Wno-unused-function -Wno-unused-parameter -Wno-logical-op -fdiagnostics-show-option -funit-at-a-time -Werror -g -O2 -MT backend.o -MD -MP -MF .deps/backend.Tpo -c -o backend.o backend.c
Weird.
-- Pete
More information about the iwhd-devel
mailing list