summaryrefslogtreecommitdiff
path: root/main.c
diff options
context:
space:
mode:
authorLeo Tenenbaum <pommicket@gmail.com>2020-11-20 16:58:59 -0500
committerLeo Tenenbaum <pommicket@gmail.com>2020-11-20 16:58:59 -0500
commitc3fd9dfa23969c842991da4cd852330288889463 (patch)
tree1a2e390ae57109febea9a5853ef9f04559d1f820 /main.c
parentc376f6f53f737d6220206baa323c0bc62d48a9f0 (diff)
started text rendering
Diffstat (limited to 'main.c')
-rw-r--r--main.c17
1 files changed, 1 insertions, 16 deletions
diff --git a/main.c b/main.c
index 9d9b99d..1d549a6 100644
--- a/main.c
+++ b/main.c
@@ -1,23 +1,8 @@
-#ifdef __GNUC__
-#define no_warn_start _Pragma("GCC diagnostic push") \
- _Pragma("GCC diagnostic ignored \"-Wpedantic\"") \
- _Pragma("GCC diagnostic ignored \"-Wsign-conversion\"") \
- _Pragma("GCC diagnostic ignored \"-Wsign-compare\"") \
- _Pragma("GCC diagnostic ignored \"-Wconversion\"") \
- _Pragma("GCC diagnostic ignored \"-Wimplicit-fallthrough\"") \
- _Pragma("GCC diagnostic ignored \"-Wunused-function\"")
-
-#define no_warn_end _Pragma("GCC diagnostic pop")
-#else
-#define no_warn_start
-#define no_warn_end
-#endif
-
+#include "base.h"
no_warn_start
#include <SDL2/SDL.h>
no_warn_end
#include <GL/gl.h>
-#include <stdbool.h>
static void die(char const *fmt, ...) {
char buf[256] = {0};