This is the mail archive of the
cygwin-patches
mailing list for the Cygwin project.
fhandler_dsp.cc error: nonnull argument ‘this’ compared to NULL
- From: Brian Inglis <Brian dot Inglis at SystematicSw dot ab dot ca>
- To: cygwin-patches at cygwin dot com
- Date: Sat, 9 Sep 2017 22:11:00 -0600
- Subject: fhandler_dsp.cc error: nonnull argument ‘this’ compared to NULL
- Authentication-results: sourceware.org; auth=none
- Reply-to: Brian dot Inglis at SystematicSw dot ab dot ca
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