diff options
author | P. J. McDermott <pj@pehjota.net> | 2021-03-17 11:57:12 (EDT) |
---|---|---|
committer | P. J. McDermott <pj@pehjota.net> | 2021-03-17 11:58:08 (EDT) |
commit | 7d6c171379b2a57a97f332a4e7fcd3135dcccb5b (patch) | |
tree | 875ace14df654d74082e062b2b8ed1cce861e268 | |
parent | 2657bc0019a6840c90f3daa090c7101e5c7997d1 (diff) | |
download | dodge-balls-7d6c171379b2a57a97f332a4e7fcd3135dcccb5b.zip dodge-balls-7d6c171379b2a57a97f332a4e7fcd3135dcccb5b.tar.gz dodge-balls-7d6c171379b2a57a97f332a4e7fcd3135dcccb5b.tar.bz2 |
build: s/ -I/ -isystem/g in libraries' CFLAGS
This suppresses warnings in libraries' headers, like:
CC src/dodge_balls-game.o
In file included from src/xml.h:24:0,
from src/game.c:28:
/usr/include/SDL2/SDL_stdinc.h: In function ‘SDL_memset4’:
/usr/include/SDL2/SDL_stdinc.h:382:5: warning: switch missing default case [-Wswitch-default]
switch (dwords % 4)
^~~~~~
-rw-r--r-- | configure.ac | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac index 2773d19..e43c092 100644 --- a/configure.ac +++ b/configure.ac @@ -109,10 +109,20 @@ done PKG_PROG_PKG_CONFIG() PKG_CHECK_MODULES([SDL], [sdl2]) +SDL_CFLAGS="$(printf ' %s' "${SDL_CFLAGS}" | \ + sed 's/ -I/ -isystem/g;')" PKG_CHECK_MODULES([SDL_IMAGE], [SDL2_image]) +SDL_IMAGE_CFLAGS="$(printf ' %s' "${SDL_IMAGE_CFLAGS}" | \ + sed 's/ -I/ -isystem/g;')" PKG_CHECK_MODULES([SDL_TTF], [SDL2_ttf]) +SDL_TTF_CFLAGS="$(printf ' %s' "${SDL_TTF_CFLAGS}" | \ + sed 's/ -I/ -isystem/g;')" PKG_CHECK_MODULES([ZLIB], [zlib]) +ZLIB_CFLAGS="$(printf ' %s' "${ZLIB_CFLAGS}" | \ + sed 's/ -I/ -isystem/g;')" PKG_CHECK_MODULES([EXPAT], [expat]) +EXPAT_CFLAGS="$(printf ' %s' "${EXPAT_CFLAGS}" | \ + sed 's/ -I/ -isystem/g;')" AC_ARG_VAR([XCF2PNG], [path to xcf2png utility]) AC_CHECK_PROGS([XCF2PNG], [xcf2png], [no]) |