Skip to content

Commit

Permalink
Merge pull request openbios#14 from fweimer-rh/c99
Browse files Browse the repository at this point in the history
toke/Makefile: Declare return type of main in GCC flag probe
  • Loading branch information
reinauer committed Feb 11, 2023
2 parents 2e143e9 + 98d1376 commit b6e3b72
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion toke/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ LDFLAGS =
# CFLAGS := $(CFLAGS) -g

# for gcc 4. remove if you fixed the code.
_GCC4_CFLAGS=$(shell echo 'main(int argc, char **argv){return 0;}' > .test.c; \
_GCC4_CFLAGS=$(shell echo 'int main(int argc, char **argv){return 0;}' > .test.c; \
$(CC) -Wno-pointer-sign -c .test.c -o .test.o > /dev/null 2>&1 \
&& echo -Wno-pointer-sign; rm .test.c .test.o )
CFLAGS := $(CFLAGS) $(_GCC4_CFLAGS)
Expand Down

0 comments on commit b6e3b72

Please sign in to comment.