]> The Tcpdump Group git mirrors - tcpdump/commitdiff
Small cleanups.
authorGuy Harris <[email protected]>
Fri, 9 Aug 2019 21:51:07 +0000 (14:51 -0700)
committerGuy Harris <[email protected]>
Fri, 9 Aug 2019 21:51:07 +0000 (14:51 -0700)
Always initialize C_ADDITIONAL_FLAGS to empty.

Get rid of an extra empty line in a comment.

CMakeLists.txt

index 79763aa6f0f7cd74bbc1c1b80a81878a4561e927..fd3415933d7606860e84a1bb6591f6db1546979f 100644 (file)
@@ -25,6 +25,7 @@ endmacro()
 # If not, try the appropriate flag for the compiler to enable C99
 # features.
 #
+set(C_ADDITIONAL_FLAGS "")
 if(MSVC)
     if(MSVC_VERSION LESS 1900)
         message(FATAL_ERROR "Visual Studio 2015 or later is required")
@@ -63,14 +64,12 @@ else(MSVC)
     # See the CMake documentation for the CMAKE_<LANG>_COMPILER_ID variables
     # for a list of compiler IDs.
     #
-    #
     # XXX - this just tests whether the option works and adds it if it does.
     # We don't test whether it's necessary in order to get the C99 features
     # that we use; if we ever have a user who tries to compile with a compiler
     # that can't be made to support those features, we can add a test to make
     # sure we actually *have* C99 support.
     #
-    set(C_ADDITIONAL_FLAGS "")
     if(CMAKE_C_COMPILER_ID MATCHES "GNU" OR
        CMAKE_C_COMPILER_ID MATCHES "Clang")
         check_and_add_compiler_option("-std=gnu99")