Move -fno-delete-null-pointer-checks to optional

It is no longer supported on El Capitan's clang, which was causing my
cmake/osx/qt build to fail with:

    clang: error: optimization flag '-fno-delete-null-pointer-checks' is not
    supported

Change-Id: Idfac336758cdea9a34446d8281cd237ad3ee6823
Reviewed-on: https://code.wireshark.org/review/11571
Petri-Dish: Alexis La Goutte <alexis.lagoutte@gmail.com>
Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org>
Reviewed-by: Evan Huus <eapache@gmail.com>
This commit is contained in:
Evan Huus 2015-11-04 14:11:49 -05:00
parent 8fb1f8e552
commit 4f01f3d806
1 changed files with 4 additions and 1 deletions

View File

@ -355,7 +355,6 @@ else()
-Wformat-security
-fwrapv
-fno-strict-overflow
-fno-delete-null-pointer-checks
-Wvla
-Waddress
-Wattributes
@ -432,6 +431,10 @@ else()
# (about glib library not using Doxygen)
#
-Wdocumentation
#
# No longer supported by El Capitan clang on C++
#
-fno-delete-null-pointer-checks
)
set(WIRESHARK_EXTRA_COMPILER_C_ONLY_FLAGS