Skip to content

Commit

Permalink
gnu11 is fine
Browse files Browse the repository at this point in the history
  • Loading branch information
fredrikwidlund committed Jun 9, 2020
1 parent f417453 commit 916277e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
sudo: required
dist: focal
dist: bionic
language: c
compiler:
- gcc
Expand Down
4 changes: 2 additions & 2 deletions Makefile.am
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
AUTOMAKE_OPTIONS = subdir-objects
ACLOCAL_AMFLAGS = ${ACLOCAL_FLAGS} -I m4
AM_CFLAGS = -std=gnu2x -g -O3 -march=native -flto -I$(srcdir)/src
AM_CFLAGS = -std=gnu11 -g -O3 -march=native -flto -I$(srcdir)/src
AM_LDFLAGS = -static

DIST_SUBDIRS = docs examples
Expand Down Expand Up @@ -59,7 +59,7 @@ check_LIBRARIES = libdynamic_test.a
libdynamic_test_a_CFLAGS = $(CHECK_CFLAGS)
libdynamic_test_a_SOURCES = $(SOURCE_FILES) $(HEADER_FILES)

CHECK_CFLAGS = -std=gnu2x -O0 -g -ftest-coverage -fprofile-arcs -I$(srcdir)/src -DGCOV_BUILD
CHECK_CFLAGS = -std=gnu11 -O0 -g -ftest-coverage -fprofile-arcs -I$(srcdir)/src -DGCOV_BUILD
CHECK_LDADD = libdynamic_test.a -lcmocka
CHECK_LDFLAGS_EXTRA = \
-Wl,--wrap=malloc \
Expand Down

0 comments on commit 916277e

Please sign in to comment.