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
1818
1919 # add -Wno-unused-result only on gcc >= 4.4
2020 ifeq ($(GCC_MAJOR),4)
21−GCCGREATERTHEN44 := $(shell expr `gcc -dumpversion | cut -f2 -d.` \>= 4)
21+GCCGREATERTHEN44 := $(shell expr `$(CC) -dumpversion | cut -f2 -d.` \>= 4)
2222 else
2323 GCCGREATERTHEN44 := 1
2424 endif

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