Wireshark mailing list archives
Re: rev 50749: /trunk/ /trunk/: CMakeLists.txt
From: Guy Harris <guy () alum mit edu>
Date: Tue, 23 Jul 2013 11:57:03 -0700
On Jul 22, 2013, at 7:00 AM, Alexis La Goutte <alexis.lagoutte () gmail com> wrote:
I try also in my Ubunux box (12.04) with clang 3.0 ( Ubuntu clang version 3.0-6ubuntu3 (tags/RELEASE_30/final) (based on LLVM 3.0) Target: x86_64-pc-linux-gnu Thread model: posix ) and i have the following error when i try to build with clang : [ 4%] Building C object wiretap/CMakeFiles/wiretap.dir/file_wrappers.c.o /home/alagoutte/wireshark2/wiretap/file_wrappers.c:818:13: error: implicit conversion loses integer precision: '__blksize_t' (aka 'long') to 'int' [-Werror,-Wshorten-64-to-32] want = st.st_blksize; ~ ~~~^~~~~~~~~~
I guess Linux is prepared for the world when files should be read in chunks bigger than 2GB. I've checked in a change to check whether st.st_blksize <= G_MAXINT and: if it is, cast st.st_blksize to int before assigning it; if it isn't, just leave "want" at the default value. Try it now.
Have also for all file the following warning... warning: unknown warning option '-Wpragmas' [-Wunknown-warning-option]
This change: http://anonsvn.wireshark.org/viewvc/trunk/CMakeLists.txt?r1=50760&r2=50759&pathrev=50760 *should* have made CMake use -Werror=unknown-warning-option when testing whether -W options are supported if the compiler supports -Werror=unknown-warning-option, so it *should* leave out all -W options that clang doesn't support. If that's not happening, that needs to be fixed. ___________________________________________________________________________ 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:
- Re: [Wireshark-commits] rev 50749: /trunk/ /trunk/: CMakeLists.txt Michael Tuexen (Jul 21)
- Re: rev 50749: /trunk/ /trunk/: CMakeLists.txt Joerg Mayer (Jul 21)
- Re: rev 50749: /trunk/ /trunk/: CMakeLists.txt Michael Tuexen (Jul 21)
- Re: rev 50749: /trunk/ /trunk/: CMakeLists.txt Joerg Mayer (Jul 21)
- Re: rev 50749: /trunk/ /trunk/: CMakeLists.txt Joerg Mayer (Jul 21)
- Re: rev 50749: /trunk/ /trunk/: CMakeLists.txt Alexis La Goutte (Jul 22)
- Re: rev 50749: /trunk/ /trunk/: CMakeLists.txt Guy Harris (Jul 23)
- Re: rev 50749: /trunk/ /trunk/: CMakeLists.txt Joerg Mayer (Jul 23)
- Re: rev 50749: /trunk/ /trunk/: CMakeLists.txt Michael Tuexen (Jul 21)
- Re: rev 50749: /trunk/ /trunk/: CMakeLists.txt Joerg Mayer (Jul 21)
- Re: rev 50749: /trunk/ /trunk/: CMakeLists.txt Michael Tuexen (Jul 21)
- Re: rev 50749: /trunk/ /trunk/: CMakeLists.txt Joerg Mayer (Jul 21)
- Re: rev 50749: /trunk/ /trunk/: CMakeLists.txt Michael Tuexen (Jul 21)
- Re: rev 50749: /trunk/ /trunk/: CMakeLists.txt Joerg Mayer (Jul 22)
- Re: rev 50749: /trunk/ /trunk/: CMakeLists.txt Graham Bloice (Jul 22)
- Re: rev 50749: /trunk/ /trunk/: CMakeLists.txt Joerg Mayer (Jul 22)
- Re: rev 50749: /trunk/ /trunk/: CMakeLists.txt Graham Bloice (Jul 23)
- Re: rev 50749: /trunk/ /trunk/: CMakeLists.txt Anders Broman (Jul 23)
- Re: rev 50749: /trunk/ /trunk/: CMakeLists.txt Joerg Mayer (Jul 23)