]> diplodocus.org Git - nmh/commit
Default CFLAGS to -std=c99 instead of -ansi.
authorDavid Levine <levinedl@acm.org>
Thu, 17 Aug 2017 23:45:20 +0000 (19:45 -0400)
committerDavid Levine <levinedl@acm.org>
Thu, 17 Aug 2017 23:45:20 +0000 (19:45 -0400)
commitf4ec967205c6fa0f3d37aad24335337251f17e16
treedecd492d9b72e5f73beda3bed2230e44d00db661
parent76b9af849ba1c93eb2b6807e57268b7a7a2e205c
Default CFLAGS to -std=c99 instead of -ansi.

gcc -ansi -pedantic issued a few warnings about C90 not supporting the
"ll" printf length modifier.  Ralph pointed out that
http://www.unix.org/version4/overview.html says:

    The following source code portability standards lie at the core of
    the Single UNIX Specification:

        POSIX.1-2008

    (This is technically identical to the Base Specifications, Issue 7;
    they are one and the same document.)

        The ISO/IEC 9899:1999 standard

So perhaps we're wrong to expect modern POSIX code to compile as C90.
build_nmh