History

Honor CC when testing for -Wno-unused-result

The compiler used for compiling tcc is the one referenced in the CC variable. As such, the check for -Wno-unused-result presence should be done on CC.

Thomas Preud'homme committed 13 years ago

Commit eb028a81 parent fc574f11 file · +1 −1Browse files

Unified · Split

Makefile+1−1
@@ -18,7 +18,7 @@ CFLAGS+=-Wno-pointer-sign -Wno-sign-compare · 17 unmodified lines
18 18
19# add -Wno-unused-result only on gcc >= 4.419# add -Wno-unused-result only on gcc >= 4.4
20ifeq ($(GCC_MAJOR),4)20ifeq ($(GCC_MAJOR),4)
21GCCGREATERTHEN44 := $(shell expr `gcc -dumpversion | cut -f2 -d.` \>= 4)21GCCGREATERTHEN44 := $(shell expr `$(CC) -dumpversion | cut -f2 -d.` \>= 4)
22else22else
23GCCGREATERTHEN44 := 123GCCGREATERTHEN44 := 1
24endif24endif

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t