X-Git-Url: http://de.git.xonotic.org/?a=blobdiff_plain;f=test.c;h=0762876735d4a30bd469fb567dbdc37c35b2900b;hb=a6f51264fd3cf6b06890d0ff50066230edee9426;hp=1111c370ed87394ea7fcb9cae729486662907aac;hpb=d51a6ab3dbde97510d082e00cc7594dbd3f755f7;p=xonotic%2Fgmqcc.git diff --git a/test.c b/test.c index 1111c37..0762876 100644 --- a/test.c +++ b/test.c @@ -121,29 +121,12 @@ FILE ** task_popen(const char *command, const char *mode) { close(2), dup(errhandle[1]); execvp(*argv, argv); - exit(1); + exit(EXIT_FAILURE); } else { /* fork failed */ 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]); task_popen_error_2: close(outhandle[0]), close(outhandle[1]); task_popen_error_1: close(inhandle [0]), close(inhandle [1]);