X-Git-Url: https://git.xonotic.org/?a=blobdiff_plain;f=test.c;h=b29a3d4c1b1a7ca9176ed89f1d60128cf43571b2;hb=7cf0ba5aa88bf09c2a91690dce29721ba7147b65;hp=1a12f078043a7070b3c1b281a910e11acd0270b6;hpb=7d2a2f2ade517b430542516f7be099fe8e230cf1;p=xonotic%2Fgmqcc.git diff --git a/test.c b/test.c index 1a12f07..b29a3d4 100644 --- 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]);