fhandler_dsp.cc error: nonnull argument ‘this’ compared to NULL
Brian Inglis
Brian.Inglis@SystematicSw.ab.ca
Thu Sep 14 12:42:00 GMT 2017
Getting failure building latest git with current gcc 6.3
...
c++wrap -O2 -g -fno-rtti -fno-exceptions -fno-use-cxa-atexit -Wall
-Wstrict-aliasing -Wwrite-strings -fno-common -pipe -fbuiltin -fmessage-length=0
-MMD -Werror -fmerge-constants -ftracer -c -o fhandler_dsp.o
../../.././winsup/cygwin/fhandler_dsp.cc
../../.././winsup/cygwin/fhandler_dsp.cc: In member function âvoid
fhandler_dev_dsp::Audio_out::buf_info(audio_buf_info*, int, int, int)â:
../../.././winsup/cygwin/fhandler_dsp.cc:503:3: error: nonnull argument âthisâ
compared to NULL [-Werror=nonnull-compar ]
if (this && dev_)
^~
../../.././winsup/cygwin/fhandler_dsp.cc: In member function âvoid
fhandler_dev_dsp::Audio_in::buf_info(audio_buf_info*, int, int, int)â:
../../.././winsup/cygwin/fhandler_dsp.cc:960:3: error: nonnull argument âthisâ
compared to NULL [-Werror=nonnull-compar ]
if (this && dev_)
^~
cc1plus: all warnings being treated as errors
make[3]: *** [../../.././winsup/cygwin/../Makefile.common:41: fhandler_dsp.o]
Error 1
$ gcc --version
gcc (GCC) 6.3.0
--
Take care. Thanks, Brian Inglis, Calgary, Alberta, Canada
More information about the Cygwin-patches
mailing list