-Wendif-labels
-Wpointer-arith
-Warray-bounds
- -Wcast-align
-Wformat-security
- -fexcess-precision=fast
+ -Wshorten-64-to-32
+ -Wvla
+ -Waddress
+ -Warray-bounds
+ -Wattributes
+ -Wdiv-by-zero
+ -Wignored-qualifiers
+ -Wpragmas
+ -Wno-overlength-strings
+ -Wwrite-strings
+ -Wno-long-long
)
+if (NOT APPLE)
+ set(WIRESHARK_C_FLAGS ${WIRESHARK_C_FLAGS} -fexcess-precision=fast)
+endif()
set(WIRESHARK_C_ONLY_FLAGS
# The following are C only, not C++
-Wc++-compat
-Wdeclaration-after-statement
+ -Wlogical-op
+ -Wshadow
-Wno-pointer-sign
-Wold-style-definition
-Wshadow
+ -Wstrict-prototypes
+ -Wjump-misses-init
)
set(WIRESHARK_EXTRA_C_FLAGS
-pedantic
-Woverflow
- -Wlogical-op
- -Wno-overlength-strings
-fstrict-overflow -Wstrict-overflow=4
-Wunreachable-code
-Wunsafe-loop-optimizations
- -Wno-long-long
+ -Wcast-align
-Wcast-qual
- -Waddress
- -Warray-bounds
- -Wattributes
- -Wdiv-by-zero
-Wformat-security
- -Wignored-qualifiers
- -Wpragmas
-Wredundant-decls
- -Wvla
- # packet-ncp2222.inc prevents this from going into all warnings
- -Wwrite-strings
# All the registration functions block these for now.
-Wmissing-declarations
- # Problem with packet-afs.c
- -Wshadow
- # More cleanup needed for this on LP64
- -Wshorten-64-to-32
-
)
set(WIRESHARK_EXTRA_C_ONLY_FLAGS
# The following are C only, not C++
-Wbad-function-cast
- -Wjump-misses-init
- # GLib blocks this for now.
- -Wstrict-prototypes
# All the registration functions block these for now.
-Wmissing-prototypes
)
unset(WERROR)
endif()
-if(CMAKE_COMPILER_IS_GNUCC OR CMAKE_CXX_COMPILER MATCHES ".*clang")
+if(CMAKE_COMPILER_IS_GNUCC OR CMAKE_CXX_COMPILER MATCHES ".*clang" OR APPLE)
set (C_UNUSED "__attribute__((unused))" )
else()
set (C_UNUSED "" )
if(UNIX)
set(PLATFORM_SRC
- capture-pcap-util-unix.c capture_unix_ifnames.c
+ capture-pcap-util-unix.c
)
endif()
ps.c
svnversion.h
sync_pipe_write.c
- timestats.c
- tap-megaco-common.c
- tap-rtp-common.c
version_info.c
)
merge.c
proto_hier_stats.c
summary.c
- tempfile.c
u3.c
ws80211_utils.c
${SHARK_COMMON_CAPTURE_SRC}
if(BUILD_tshark)
set(tshark_LIBS
+ ui
${LIBEPAN_LIBS}
${APPLE_CORE_FOUNDATION_LIBRARY}
${APPLE_SYSTEM_CONFIGURATION_LIBRARY}
set(tshark_FILES
capture_opts.c
capture_sync.c
- tempfile.c
tshark-tap-register.c
tshark.c
- ui/util.c
${TSHARK_TAP_SRC}
${SHARK_COMMON_CAPTURE_SRC}
${WIRESHARK_COMMON_SRC}
set(editcap_FILES
editcap.c
epan/crypt/md5.c
- epan/nstime.c
${WTAP_PLUGIN_SOURCES}
)
add_executable(editcap ${editcap_FILES})
pcapio.c
ringbuffer.c
sync_pipe_write.c
- tempfile.c
version_info.c
ws80211_utils.c
${PLATFORM_SRC}