Enforce C99 conformance.

This commit is contained in:
CismonX 2021-01-22 00:08:05 +08:00
parent f6d0fa4cd0
commit 6e8fd91103
Signed by: cismonx
GPG Key ID: 3094873E29A482FB
4 changed files with 6 additions and 1 deletions

View File

@ -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

View File

@ -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

View File

@ -36,6 +36,7 @@
#include <stdlib.h>
#include <fcntl.h>
#include <getopt.h>
#include <sys/ioctl.h>
#include <termios.h>
#include <unistd.h>

View File

@ -28,6 +28,7 @@
#include <stdlib.h>
#include <fcntl.h>
#include <getopt.h>
#include <termios.h>
#include <unistd.h>