]> git.rm.cloudns.org Git - xonotic/gmqcc.git/commitdiff
Only g++ is this retarded
authorDale Weiler <killfieldengine@gmail.com>
Mon, 25 Nov 2013 18:30:45 +0000 (13:30 -0500)
committerDale Weiler <killfieldengine@gmail.com>
Mon, 25 Nov 2013 18:30:45 +0000 (13:30 -0500)
parser.c
stat.c

index 0dda3591202c2b31e592e716ff45232dbf7910df..8c1ba3480c30ab263bb059bdfe871b3e10abe707 100644 (file)
--- a/parser.c
+++ b/parser.c
@@ -1590,7 +1590,7 @@ static bool parse_sya_operand(parser_t *parser, shunt *sy, bool with_labels)
              */
             if (!var) {
                 if ((var = intrin_func(parser->intrin, parser_tokval(parser)))) {
-                    (void)!!compile_warning(
+                    (void)!!!compile_warning(
                         parser_ctx(parser),
                         WARN_BUILTINS,
                         "using implicitly defined builtin `__builtin_%s' for `%s'",
diff --git a/stat.c b/stat.c
index e46102da51d3ec8e337cfb49217615be63af7f56..6987cf7b40a2f376f1bc6ac37dfe1ef3c49fe07d 100644 (file)
--- a/stat.c
+++ b/stat.c
@@ -685,7 +685,7 @@ void util_htdel(hash_table_t *ht) {
  * information.
  */
 static void stat_dump_mem_contents(stat_mem_block_t *block, uint16_t cols) {
-    unsigned char *buffer = mem_a(cols);
+    unsigned char *buffer = (unsigned char *)mem_a(cols);
     unsigned char *memory = (unsigned char *)(block + 1);
     size_t         i;