• Nils Goroll's avatar
    Add back _POSIX_C_SOURCE · a4357ee7
    Nils Goroll authored
    I had removed these before the public open source release based on Flexelint output,
    but Geoff is correct that, contrary to the C version macros like __STDC_VERSION__,
    _POSIX_C_SOURCE is to be set by the programmer.
    
    Ref: https://www.gnu.org/software/libc/manual/html_node/Feature-Test-Macros.html
    
    On the downside, we do now see some noise from flexelint and it is unclear to me
    how to suppress Note 9071.
    
    --- Module:   pesi.c (C)
    File pesi.c, Line 33
            _
        Note 9071: defined macro '_POSIX_C_SOURCE' is reserved to the compiler
    File /usr/include/x86_64-linux-gnu/bits/types/struct_tm.h, Line 23
                          _
      long int __tm_gmtoff;		/* Seconds east of UTC.  */
        Error 114: Inconsistent structure declaration for tag 'tm'
    File /usr/include/x86_64-linux-gnu/bits/types/struct_tm.h, Line 24
                           _
      const char *__tm_zone;	/* Timezone abbreviation.  */
        Error 114: Inconsistent structure declaration for tag 'tm'
    
    --- Module:   vdp_pesi.c (C)
    File vdp_pesi.c, Line 33
            _
        Note 9071: defined macro '_POSIX_C_SOURCE' is reserved to the compiler
    File /usr/include/x86_64-linux-gnu/bits/types/struct_tm.h, Line 23
                          _
      long int __tm_gmtoff;		/* Seconds east of UTC.  */
        Error 114: Inconsistent structure declaration for tag 'tm'
    File /usr/include/x86_64-linux-gnu/bits/types/struct_tm.h, Line 24
                           _
      const char *__tm_zone;	/* Timezone abbreviation.  */
        Error 114: Inconsistent structure declaration for tag 'tm'
    a4357ee7
Name
Last commit
Last update
..
foreign Loading commit data...
tests Loading commit data...
Makefile.am Loading commit data...
debug.h Loading commit data...
flint.lnt Loading commit data...
flint.sh Loading commit data...
misc.c Loading commit data...
misc.h Loading commit data...
node.c Loading commit data...
node.h Loading commit data...
node_assert.h Loading commit data...
node_head.h Loading commit data...
node_mempool.h Loading commit data...
pesi.c Loading commit data...
pesi.h Loading commit data...
pesi.vsc Loading commit data...
pesi_flags.h Loading commit data...
pesi_tree.h Loading commit data...
state.dot Loading commit data...
tbl_set_parameter.h Loading commit data...
tree.dot Loading commit data...
vdp_pesi.c Loading commit data...
vdp_pesi.h Loading commit data...
vdp_pesi.vcc Loading commit data...
vmod_pesi.c Loading commit data...
vmod_pesi_debug.c Loading commit data...
vmod_pesi_debug.vcc Loading commit data...