Fix another warning

This commit is contained in:
Dale Weiler 2012-12-28 12:36:15 +00:00
parent 6935561b41
commit e4b8df2dc6
2 changed files with 0 additions and 18 deletions

View file

@ -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
View file

@ -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]);