Wireshark mailing list archives

Re: cmake giving options the compiler does not understand


From: Guy Harris <guy () alum mit edu>
Date: Sat, 4 Jan 2014 18:51:05 -0800


On Jan 4, 2014, at 9:17 AM, Jeff Morriss <jeff.morriss.ws () gmail com> wrote:

Ah, OK, I found a way to reproduce it (in current SVN):

1) rm -rf _cmake_build
2) mkdir _cmake_build && cd _cmake_build
3) vi ../CMakeLists.txt
4) Move the "-Wshorten-64-to-32" flag from where it is in the file to just after "-Wshadow"
5) cmake ..

Presumably CMake then reports something such as

        -- Checking for flag: -Wshorten-64-to-32
        -- Performing Test WS_C_FLAG_VALID44
        -- Performing Test WS_C_FLAG_VALID44 - Failed

in that case, meaning it thinks -Wshorten-64-to-32 isn't supported by the C compiler?

6) make # just to show that it works (I stopped the build after a few C files were compiled)
7) vi ../CMakeLists.txt
8) Put "-Wshorten-64-to-32" back where it was (at the end of WIRESHARK_C_ONLY_FLAGS)
9) cmake ..

Presumably CMake then reports something such as

        -- Checking for flag: -Wshorten-64-to-32
        -- Performing Test WS_C_FLAG_VALID44
        -- Performing Test WS_C_FLAG_VALID44 - Success

in that case, meaning it thinks -Wshorten-64-to-32 *is* supported by the C compiler?

Which version of which compiler is this?  (You said "Fedora", so I presume it's either GCC or Clang; which version of 
Fedora is it?)
___________________________________________________________________________
Sent via:    Wireshark-dev mailing list <wireshark-dev () wireshark org>
Archives:    http://www.wireshark.org/lists/wireshark-dev
Unsubscribe: https://wireshark.org/mailman/options/wireshark-dev
             mailto:wireshark-dev-request () wireshark org?subject=unsubscribe


Current thread: