Enforce C99 conformance.
This commit is contained in:
parent
f6d0fa4cd0
commit
6e8fd91103
|
@ -35,7 +35,7 @@ jobs:
|
|||
- name: Configure build
|
||||
run: |
|
||||
autoreconf --install
|
||||
./configure CFLAGS='-O0 -g -Wall -Wextra -Wpedantic'
|
||||
./configure CFLAGS='-O0 -g -std=c99 -Wall -Wextra -Wpedantic'
|
||||
- name: Compile
|
||||
run: make
|
||||
- name: Run tests
|
||||
|
|
|
@ -49,5 +49,8 @@ m4_define([CTLSEQS_LT_REVISION], [0])
|
|||
m4_define([CTLSEQS_LT_AGE], [0])
|
||||
AC_SUBST([CTLSEQS_LT_VERSION], [CTLSEQS_LT_CURRENT:CTLSEQS_LT_REVISION:CTLSEQS_LT_AGE])
|
||||
|
||||
# Assume that POSIX.1-2008 is supported.
|
||||
AC_DEFINE([_POSIX_C_SOURCE], [200809L], [Feature test macro for POSIX.1-2008])
|
||||
|
||||
AC_CONFIG_FILES([Makefile doc/Makefile man/Makefile src/Makefile tests/Makefile examples/Makefile])
|
||||
AC_OUTPUT
|
||||
|
|
|
@ -36,6 +36,7 @@
|
|||
#include <stdlib.h>
|
||||
|
||||
#include <fcntl.h>
|
||||
#include <getopt.h>
|
||||
#include <sys/ioctl.h>
|
||||
#include <termios.h>
|
||||
#include <unistd.h>
|
||||
|
|
|
@ -28,6 +28,7 @@
|
|||
#include <stdlib.h>
|
||||
|
||||
#include <fcntl.h>
|
||||
#include <getopt.h>
|
||||
#include <termios.h>
|
||||
#include <unistd.h>
|
||||
|
||||
|
|
Loading…
Reference in New Issue