[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [libmicrohttpd] How to proper fix error: "ISO C90 does not support
From: |
Christian Grothoff |
Subject: |
Re: [libmicrohttpd] How to proper fix error: "ISO C90 does not support ‘long long’"? |
Date: |
Sat, 24 Mar 2018 10:07:22 +0100 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.6.0 |
Changing 'long long' will break ABI compatibility. So this is not
something you want to do for a mere warning in response to you trying
out compiler flags to try settings nobody has needed for 20+ years.
On 03/24/2018 04:30 AM, silvioprog wrote:
> Christian,
>
> I'm using the following compilers:
>
> 1) clang version 5.0.1-svn325091-1~exp1 (branches/release_50)
>
> 2) arm-linux-androideabi-gcc (Linaro GCC 4.7-2014.04-1~dev) 4.7.4
>
> 3) gcc (Ubuntu 5.4.0-6ubuntu1~16.04.9) 5.4.0 20160609
>
> clang and arm-linux-androideabi-gcc compiles MHD fine, but gcc raises
> the following error:
>
> [snip]
> /libmicrohttpd/include/microhttpd.h:277:46: error: ISO C90 does not
> support ‘long long’ [-Werror=long-long]
> #define MHD_UNSIGNED_LONG_LONG unsigned long long
> ^
> /libmicrohttpd/include/microhttpd.h:2348:4: note: in expansion of macro
> ‘MHD_UNSIGNED_LONG_LONG’
> MHD_UNSIGNED_LONG_LONG *timeout);
> ^
> cc1: all warnings being treated as errors
>
> I fixed it using the attached patch, but I'm not sure if it is the
> proper way to fix it.
>
> WDYT about this change?
>
> --
> Silvio Clécio
signature.asc
Description: OpenPGP digital signature