ref: 5b66f2cf8ddbd4e3877efc278a44e43befb6d829
parent: 9ba5f22caf52b2dfce8deeab4271f2923a0287c2
author: cancel <cancel@cancel.fm>
date: Fri Dec 7 17:38:34 EST 2018
Change sokol_time.h to get -isystem for include Generates Wconversion warning on mac, otherwise.
--- a/tool
+++ b/tool
@@ -228,6 +228,11 @@
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
--- a/tui_main.c
+++ b/tui_main.c
@@ -9,7 +9,7 @@
#include <ncurses.h>
#define SOKOL_IMPL
-#include "thirdparty/sokol_time.h"
+#include "sokol_time.h"
#undef SOKOL_IMPL
#define AND_CTRL(c) ((c)&037)