With gcc on Debian I see this error --- /home/daniel/prefix/apache2/include/http_log.h:361:5: warning: "__STDC_VERSION__" is not defined
unless I force it to C99 mode. Michael Felt wrote on Tue, Feb 21, 2012 at 18:43:34 +0000: > FYI - I see no notable difference in the W messages with the IBM vacpp > (xlc) v7 compiler using no CFLAGS and CFLAGS='-O2 -qlanglvl=extc99' > > "util_expr_eval.c", line 1553.7: 1506-196 (W) Initialization between types > "const void*" and "const char*(*)(struct {...}*,const void*)" is not > allowed. > .... > "util_expr_eval.c", line 1601.7: 1506-196 (W) Initialization between types > "const void*" and "int(*)(struct {...}*,const void*,const char*,const > char*)" is not allowed. > "mod_include.c", line 721.26: 1506-068 (W) Operation between types "const > void*" and "const char*(*)(struct {...}*,const void*,const char*)" is not > allowed. > "mod_headers.c", line 898.43: 1506-280 (W) Function argument assignment > between types "const void*" and "const char*(*)(struct request_rec*,char*)" > is not allowed. > "util_expr_eval.c", line 1601.7: 1506-196 (W) Initialization between types > "const void*" and "int(*)(struct {...}*,const void*,const char*,const > char*)" is not allowed. > "mod_include.c", line 721.26: 1506-068 (W) Operation between types "const > void*" and "const char*(*)(struct {...}*,const void*,const char*)" is not > allowed. > "mod_headers.c", line 898.43: 1506-280 (W) Function argument assignment > between types "const void*" and "const char*(*)(struct request_rec*,char*)" > is not allowed. > > On Tue, Feb 21, 2012 at 10:44 AM, William A. Rowe Jr. > <wr...@rowe-clan.net>wrote: > > > On 2/21/2012 4:00 AM, Daniel Shahaf wrote: > > > > > > (I'm working on the assumption that API consumers are allowed to write > > > their code in C89.) > > > > I believe that in 2012 that is a more than fair assumption, go with it. > > > > I'm not sure we have a C99 consensus, although I believe it's past time > > that we should :) > >