Skip to content

Commit

Permalink
Explicitly require c99 support
Browse files Browse the repository at this point in the history
This is not a new requirement: we already needed c99 support for certain
functions (e.g., va_copy()).  However, gcc doesn't error out if functions
introduced in newer versions of the C standard are accessed when the standard
is something older.
  • Loading branch information
frozencemetery committed Aug 9, 2017
1 parent 3f6d5bb commit 63463ac
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,13 @@ AC_INIT(libverto, 0.2.6)
m4_ifdef([AC_USE_SYSTEM_EXTENSIONS],
[AC_USE_SYSTEM_EXTENSIONS],
[AC_GNU_SOURCE])

AC_PROG_CC_C99
CFLAGS="$CFLAGS -Wall -Wextra"

AC_CANONICAL_SYSTEM
AM_INIT_AUTOMAKE([1.11])

AC_PROG_CC
AC_PROG_LIBTOOL
AC_CONFIG_MACRO_DIR([m4])

Expand Down

0 comments on commit 63463ac

Please sign in to comment.