summaryrefslogtreecommitdiff
path: root/gfx/models
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2021-11-26 00:39:53 +0000
committerDan Goodliffe <dan@randomdan.homeip.net>2021-11-26 00:39:53 +0000
commit669cdbc6e606313efe1a38caba7cb10d3b2f23fe (patch)
tree0e73ed38a241794d2dc7674f12800a39298f6c79 /gfx/models
parentInclude stb directly (diff)
downloadilt-669cdbc6e606313efe1a38caba7cb10d3b2f23fe.tar.bz2
ilt-669cdbc6e606313efe1a38caba7cb10d3b2f23fe.tar.xz
ilt-669cdbc6e606313efe1a38caba7cb10d3b2f23fe.zip
Compile generated/external code as release
Moves stb stuff to .c then all .ll and .c built release mode, neatly disables all the warnings
Diffstat (limited to 'gfx/models')
-rw-r--r--gfx/models/obj.ll5
-rw-r--r--gfx/models/stb_image.c4
-rw-r--r--gfx/models/stb_image.cpp9
3 files changed, 4 insertions, 14 deletions
diff --git a/gfx/models/obj.ll b/gfx/models/obj.ll
index a9a857b..84884fe 100644
--- a/gfx/models/obj.ll
+++ b/gfx/models/obj.ll
@@ -7,11 +7,6 @@
%option prefix="objbase"
%{
-#pragma GCC diagnostic ignored "-Wsign-compare"
-#pragma GCC diagnostic ignored "-Wimplicit-fallthrough"
-#if __clang__
-#pragma GCC diagnostic ignored "-Wnull-conversion"
-#endif
#include <gfx/models/obj.h>
#include <glm/glm.hpp>
#include <memory>
diff --git a/gfx/models/stb_image.c b/gfx/models/stb_image.c
new file mode 100644
index 0000000..c15369e
--- /dev/null
+++ b/gfx/models/stb_image.c
@@ -0,0 +1,4 @@
+#ifndef TIDY
+# define STB_IMAGE_IMPLEMENTATION
+# include "stb/stb_image.h"
+#endif
diff --git a/gfx/models/stb_image.cpp b/gfx/models/stb_image.cpp
deleted file mode 100644
index c6b605e..0000000
--- a/gfx/models/stb_image.cpp
+++ /dev/null
@@ -1,9 +0,0 @@
-#ifndef TIDY
-# define STB_IMAGE_IMPLEMENTATION
-# pragma GCC diagnostic ignored "-Wsign-compare"
-# pragma GCC diagnostic ignored "-Wimplicit-fallthrough"
-# ifndef __clang__
-# pragma GCC diagnostic ignored "-Wunused-but-set-variable"
-# endif
-# include "stb/stb_image.h"
-#endif