From 5b66f2cf8ddbd4e3877efc278a44e43befb6d829 Mon Sep 17 00:00:00 2001 From: cancel Date: Fri, 7 Dec 2018 22:38:34 +0900 Subject: [PATCH] Change sokol_time.h to get -isystem for include Generates Wconversion warning on mac, otherwise. --- tool | 5 +++++ tui_main.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/tool b/tool index a23dc8b..384bcbd 100755 --- a/tool +++ b/tool @@ -228,6 +228,11 @@ build_target() { orca|tui) add source_files tui_main.c add cc_flags -D_XOPEN_SOURCE_EXTENDED=1 + # thirdparty headers (like sokol_time.h) should get -isystem for their + # include dir so that any warnings they generate with our warning flags + # are ignored. (sokol_time.h may generate sign conversion warning on + # mac.) + add cc_flags -isystem thirdparty # if we ever need newer posix stuff # add cc_flags -D_POSIX_C_SOURCE=200809L out_exe=orca diff --git a/tui_main.c b/tui_main.c index 0bbd453..e9e759f 100644 --- a/tui_main.c +++ b/tui_main.c @@ -9,7 +9,7 @@ #include #define SOKOL_IMPL -#include "thirdparty/sokol_time.h" +#include "sokol_time.h" #undef SOKOL_IMPL #define AND_CTRL(c) ((c)&037)