Re: [libmicrohttpd] How to proper fix error: "ISO C90 does not support ‘long long’"?

2018-03-24 Thread Tim Rühsen
Hi Silvio, On 24.03.2018 04:30, silvioprog wrote: > 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 ar

Re: [libmicrohttpd] How to proper fix error: "ISO C90 does not support ‘long long’"?

2018-03-24 Thread Christian Grothoff
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:

Re: [libmicrohttpd] How to proper fix error: "ISO C90 does not support ‘long long’"?

2018-03-24 Thread silvioprog
Hello Tim, thanks for answering. 😁 I'm using the following CMake script: https://github.com/risoflora/libbrook/blob/new_api/cmake/BkFlags.cmake it seems the error is related to the line 60: [snip] 53. if (BK_PICKY_COMPILER) 54. if (CMAKE_COMPILER_IS_GNUCC OR CMAKE_COMPILER_IS_CLANG) 55.

Re: [libmicrohttpd] How to proper fix error: "ISO C90 does not support ‘long long’"?

2018-03-24 Thread silvioprog
Indeed. I forgot to run abi-compliance-checker tool, it reported me shortly after I send the e-mail. 😅 On Sat, Mar 24, 2018 at 6:07 AM, Christian Grothoff wrote: > Changing 'long long' will break ABI compatibility. So this is not > something you want to do for a mere warning in response to you t

Re: [libmicrohttpd] How to proper fix error: "ISO C90 does not support ‘long long’"?

2018-03-24 Thread silvioprog
Oops... On Sat, Mar 24, 2018 at 1:11 PM, silvioprog wrote: > ... it seems GCC doesn't provide a specific option for this checking. > I meant "it seems -Wcomment/-Wcomments works only in 'C<=90'". -- Silvio Clécio

Re: [libmicrohttpd] How to proper fix error: "ISO C90 does not support ‘long long’"?

2018-03-24 Thread Tim Rühsen
On 24.03.2018 17:24, silvioprog wrote: > Oops... > > On Sat, Mar 24, 2018 at 1:11 PM, silvioprog > wrote: > > ... it seems GCC doesn't provide a specific option for this checking. > > > I meant "it seems -Wcomment/-Wcomments works only in 'C<=90'". > And that make

Re: [libmicrohttpd] MHD and PVS-Studio Analysis

2018-03-24 Thread silvioprog
Finally I made a step by step to reproduce the full report (total warnings [general analysis]: 36). Firstly, take a look at this new generated report: https://duallsistemas.com.br/download/pvs_mhd/fullhtml2 The steps: Download the free PVS-Studio binary from: https://github.com/viva64/how-to-us

[libmicrohttpd] New project: microhttpd.h or microhttpd2.h?

2018-03-24 Thread silvioprog
Hello. I'm going to create a new project from scratch that uses MHD as main HTTP library, so I'm free to choose a new API. However, I have some questions that may help me to choose between microhttpd.h and microhttpd2.h: * can I use the new API in production? (I'm following MHD changes, but I'm n