Home page logo
/

wireshark logo Wireshark mailing list archives

Re: [Wireshark-commits] buildbot failure in Wireshark (development) on OSX-10.5-x86
From: Guy Harris <guy () alum mit edu>
Date: Sat, 10 Aug 2013 15:27:39 -0700


On Aug 10, 2013, at 2:32 PM, Martin Mathieson <martin.r.mathieson () googlemail com> wrote:

Sorry, I don't understand these warning messages...

Those are the ones I fixed.

As per my comment:

In C, a floating-point constant is a double, unless explicitly made float by an "f" suffix; to quote the C90 spec:

        An unsuffixed floating constant has type double. If suffixed by the letter f or F, it has type float. If 
suffixed by the letter l or L, it has type long double.

GCC and Clang, when run with -Wshorten-64-to-32, will warn about assigning a double value to a float, as well as 
assigning a 64-bit integer value to a 32-bit integer.  (I wish there were a general -Wshorten, that *also* warned about 
32-bit integer values and 16-bit integers and about 16-bit integer values and 8-bit integers, so that those warnings 
will be caught with GCC/Clang as well as MSVC.)
___________________________________________________________________________
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


  By Date           By Thread  

Current thread:
[ Nmap | Sec Tools | Mailing Lists | Site News | About/Contact | Advertising | Privacy ]