Skip to content

Commit

Permalink
Fix compiler warning
Browse files Browse the repository at this point in the history
This fixes the following warning:

In file included from /usr/include/stdlib.h:24:0,
                 from texcaller.h:172,
                 from texcaller.c:14:
/usr/include/features.h:148:3: error: #warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" [-Werror=cpp]
 # warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE"
   ^~~~~~~
  • Loading branch information
vog committed Aug 30, 2017
1 parent fe3143d commit 0600d51
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion c/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ AR := $(CROSS)ar
CC := $(CROSS)gcc
CXX := $(CROSS)g++
INSTALL := $(shell ginstall --help >/dev/null 2>&1 && echo g)install
CFLAGS := -O3 -ansi -pedantic -W -Wall -Werror
CFLAGS := -O3 -D_DEFAULT_SOURCE -ansi -pedantic -W -Wall -Werror

.PHONY: all check clean install

Expand Down
2 changes: 1 addition & 1 deletion shell/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ PREFIX := /usr/local
CROSS :=
CC := $(CROSS)gcc
INSTALL := $(shell ginstall --help >/dev/null 2>&1 && echo g)install
CFLAGS := -O3 -ansi -pedantic -W -Wall -Werror
CFLAGS := -O3 -D_DEFAULT_SOURCE -ansi -pedantic -W -Wall -Werror

.PHONY: all check clean install

Expand Down

0 comments on commit 0600d51

Please sign in to comment.