mirror of
https://github.com/DarkPlacesEngine/gmqcc.git
synced 2025-02-21 02:40:56 +00:00
Fix another warning
This commit is contained in:
parent
6935561b41
commit
e4b8df2dc6
2 changed files with 0 additions and 18 deletions
|
@ -64,7 +64,6 @@ FLAGS_MAYBE="\
|
|||
# remove one flag from here at a time while fixing the code so that
|
||||
FLAGS_TOFIX="\
|
||||
-boolcompare \
|
||||
-unreachable \
|
||||
-incondefs \
|
||||
-initallelements \
|
||||
-macroredef \
|
||||
|
|
17
test.c
17
test.c
|
@ -127,23 +127,6 @@ 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]);
|
||||
task_popen_error_2: close(outhandle[0]), close(outhandle[1]);
|
||||
task_popen_error_1: close(inhandle [0]), close(inhandle [1]);
|
||||
|
|
Loading…
Reference in a new issue