On Jan 4, 2014, at 9:17 AM, Jeff Morriss <[email protected]> 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 <[email protected]>
Archives: http://www.wireshark.org/lists/wireshark-dev
Unsubscribe: https://wireshark.org/mailman/options/wireshark-dev
mailto:[email protected]?subject=unsubscribe