diff options
author | Guy Harris <guy@alum.mit.edu> | 2018-02-16 14:51:51 -0800 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2018-02-16 23:26:01 +0000 |
commit | f4cd45f6fea693f8ab82fb3264bea717b32d4947 (patch) | |
tree | a9568082a88e93626a11c86d930573b8bc14ddf9 | |
parent | 4a69d10920c47fbbb5522adbb478cfeb8f6785dc (diff) |
Treat the text2pcap scanner as clean.
We now disable some warnings on Flex-generated code.
Change-Id: I8ff242dc17e7345e9d5883354e921642cb0118fd
Reviewed-on: https://code.wireshark.org/review/25823
Petri-Dish: Guy Harris <guy@alum.mit.edu>
Tested-by: Petri Dish Buildbot
Reviewed-by: Guy Harris <guy@alum.mit.edu>
-rw-r--r-- | CMakeLists.txt | 13 |
1 files changed, 5 insertions, 8 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index a84053bf82..9928b45024 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -2609,18 +2609,15 @@ if(BUILD_text2pcap) ${M_LIBRARIES} ${ZLIB_LIBRARIES} ) - set(text2pcap_CLEAN_FILES + set(text2pcap_FILES text2pcap.c version_info.c ) - set(text2pcap_FILES - ${text2pcap_CLEAN_FILES} - ${CMAKE_BINARY_DIR}/image/text2pcap.rc - ) - add_lex_files(text2pcap_LEX_FILES text2pcap_GENERATED_FILES + add_lex_files(text2pcap_LEX_FILES text2pcap_FILES text2pcap-scanner.l ) - add_executable(text2pcap ${text2pcap_FILES} ${text2pcap_GENERATED_FILES}) + add_executable(text2pcap ${text2pcap_FILES} + ${CMAKE_BINARY_DIR}/image/text2pcap.rc) add_dependencies(text2pcap version) set_extra_executable_properties(text2pcap "Executables") target_link_libraries(text2pcap ${text2pcap_LIBS}) @@ -3012,7 +3009,7 @@ set(CLEAN_C_FILES ${randpkt_FILES} ${randpktdump_FILES} ${udpdump_FILES} - ${text2pcap_CLEAN_FILES} + ${text2pcap_FILES} ${mergecap_FILES} ${capinfos_FILES} ${captype_FILES} |