[llvm-bugs] [Bug 36520] New diagnostic -Wzero-as-null-pointer-constant warns on code in system headers.

via llvm-bugs llvm-bugs at lists.llvm.org
Mon Feb 26 09:59:21 PST 2018


https://bugs.llvm.org/show_bug.cgi?id=36520

Lukasz Anforowicz <lukasza at chromium.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Resolution|---                         |WONTFIX
             Status|NEW                         |RESOLVED

--- Comment #2 from Lukasz Anforowicz <lukasza at chromium.org> ---
Good call - thanks for taking a look.  The include path was indeed specified
via -I... rather than -isystem:
-I../../build/linux/debian_stretch_amd64-sysroot/usr/lib/x86_64-linux-gnu/glib-2.0/include.

Let me resolve this bug as WontFix/WAI/ByDesign.

third_party/llvm-build/Release+Asserts/bin/clang++ -MMD -MF
obj/base/base/message_pump_glib.o.d -DUSE_SYMBOLIZE -DV8_DEPRECATION_WARNINGS
-DDCHECK_ALWAYS_ON=1 -DUSE_UDEV -DUSE_AURA=1 -DUSE_GLIB=1 -DUSE_NSS_CERTS=1
-DUSE_X11=1 -DNO_TCMALLOC -DMEMORY_TOOL_REPLACES_ALLOCATOR
-DMEMORY_SANITIZER_INITIAL_SIZE -DADDRESS_SANITIZER -DFULL_SAFE_BROWSING
-DSAFE_BROWSING_CSD -DSAFE_BROWSING_DB_LOCAL -DCHROMIUM_BUILD
-DFIELDTRIAL_TESTING_ENABLED -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE
-D_LARGEFILE64_SOURCE -DCR_CLANG_REVISION=\"325667-1\" -D__STDC_CONSTANT_MACROS
-D__STDC_FORMAT_MACROS -DCOMPONENT_BUILD -DNDEBUG -DNVALGRIND
-DDYNAMIC_ANNOTATIONS_ENABLED=0 -DBASE_IMPLEMENTATION
-DGLIB_VERSION_MAX_ALLOWED=GLIB_VERSION_2_32
-DGLIB_VERSION_MIN_REQUIRED=GLIB_VERSION_2_26 -I../.. -Igen
-I../../build/linux/debian_stretch_amd64-sysroot/usr/include/glib-2.0
-I../../build/linux/debian_stretch_amd64-sysroot/usr/lib/x86_64-linux-gnu/glib-2.0/include
-fno-strict-aliasing --param=ssp-buffer-size=4 -fstack-protector
-Wno-builtin-macro-redefined -D__DATE__= -D__TIME__= -D__TIMESTAMP__=
-funwind-tables -fPIC -pipe -B../../third_party/binutils/Linux_x64/Release/bin
-pthread -fcolor-diagnostics -Xclang -mllvm -Xclang
-instcombine-lower-dbg-declare=0 -no-canonical-prefixes -m64 -march=x86-64
-Wall -Werror -Wextra -Wimplicit-fallthrough -Wthread-safety
-Wzero-as-null-pointer-constant -Wno-missing-field-initializers
-Wno-unused-parameter -Wno-c++11-narrowing -Wno-covered-switch-default
-Wno-unneeded-internal-declaration -Wno-inconsistent-missing-override
-Wno-undefined-var-template -Wno-nonportable-include-path
-Wno-address-of-packed-member -Wno-unused-lambda-capture
-Wno-user-defined-warnings -Wno-enum-compare-switch
-Wno-null-pointer-arithmetic -fno-omit-frame-pointer -g1 -gline-tables-only
-gcolumn-info -fsanitize=address -fsanitize-address-use-after-scope
-fsanitize-blacklist=../../tools/memory/asan/blacklist.txt -fvisibility=hidden
-Xclang -load -Xclang
../../third_party/llvm-build/Release+Asserts/lib/libFindBadConstructs.so
-Xclang -add-plugin -Xclang find-bad-constructs -Xclang
-plugin-arg-find-bad-constructs -Xclang check-ipc -Wheader-hygiene
-Wstring-conversion -Wtautological-overlap-compare -Wglobal-constructors
-Wexit-time-destructors -Wexit-time-destructors -Wshadow
-Wexit-time-destructors -O2 -fno-ident -fdata-sections -ffunction-sections
-std=gnu++14 -fno-exceptions -fno-rtti -nostdinc++
-isystem../../buildtools/third_party/libc++/trunk/include
-isystem../../buildtools/third_party/libc++abi/trunk/include
--sysroot=../../build/linux/debian_stretch_amd64-sysroot
-fvisibility-inlines-hidden -c ../../base/message_loop/message_pump_glib.cc -o
obj/base/base/message_pump_glib.o

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20180226/b5831af9/attachment-0001.html>


More information about the llvm-bugs mailing list