afio: fix build with Xcode gcc

This commit is contained in:
Sergey Fedorov
2024-07-17 22:20:47 +08:00
committed by Renee Otten
parent cddcd21a9c
commit 43e74cee05
2 changed files with 14 additions and 0 deletions
+3
View File
@@ -27,6 +27,9 @@ github.tarball_from archive
patchfiles Makefile.patch \
implicit.patch
# cc1: error: unrecognized command line option "-Wno-unused-result"
patchfiles-append patch-cflags.diff
makefile.override-append \
PREFIX
+11
View File
@@ -0,0 +1,11 @@
--- Makefile 2018-11-30 22:25:04.000000000 +0800
+++ Makefile 2024-07-17 22:18:35.000000000 +0800
@@ -74,7 +74,7 @@
#code can be reviewed manually
#MW=-Wtraditional -Wcast-qual -Wcast-align -Wconversion -pedantic -Wlong-long -Wimplicit -Wuninitialized -W -Wshadow -Wsign-compare -Wstrict-prototypes -Wmissing-declarations
-CFLAGS1 = -Wall -Wstrict-prototypes -s -O2 -fomit-frame-pointer -Wno-unused-result $(LARGEFILEFLAGS) $(MW)
+CFLAGS1 = -Wall -Wstrict-prototypes -s -O2 -fomit-frame-pointer $(LARGEFILEFLAGS) $(MW)
CC=gcc