]> git.xonotic.org Git - xonotic/gmqcc.git/blobdiff - test.c
'noreturn' is now an attribute and parsed as [[noreturn]]
[xonotic/gmqcc.git] / test.c
diff --git a/test.c b/test.c
index 1a12f078043a7070b3c1b281a910e11acd0270b6..b29a3d4c1b1a7ca9176ed89f1d60128cf43571b2 100644 (file)
--- a/test.c
+++ b/test.c
@@ -127,8 +127,21 @@ FILE ** task_popen(const char *command, const char *mode) {
         goto task_popen_error_3;
     }
 
+    /*
+     * clang is stupid, it doesn't understand that yes, this code
+     * is actually reachable.
+     */
+#   ifdef __clang__
+#       pragma clang diagnostic push
+#       pragma clang diagnostic ignored "-Wunreachable-code"
+#   endif
     if (argv)
         vec_free(argv);
+
+#   ifdef __clang__
+#    pragma clang diagnostic pop
+#   endif
+
     return data->handles;
 
 task_popen_error_3: close(errhandle[0]), close(errhandle[1]);