compiler/tasking: fix unreachable code on tasking toolchain

ctc W544: ["serial/serial.c" 284/3] unreachable code
ctc W544: ["vfs/fs_lseek.c" 96/13] unreachable code
ctc W544: ["wqueue/kwork_thread.c" 210/32] unreachable code
ctc W544: ["stdio/lib_fopen.c" 327/19] unreachable code
ctc W544: ["stdio/lib_fopen.c" 404/13] unreachable code
ctc W544: ["string/lib_strcasestr.c" 120/3] unreachable code
ctc W544: ["unistd/lib_getopt_common.c" 156/21] unreachable code
ctc W544: ["unistd/lib_getopt_common.c" 216/21] unreachable code
ctc W544: ["wctype/lib_iswctype.c" 155/3] unreachable code

Signed-off-by: chao an <anchao@lixiang.com>
This commit is contained in:
chao an
2024-01-31 09:02:08 +08:00
committed by Xiang Xiao
parent 6308a53274
commit 8ff97f6210
6 changed files with 7 additions and 13 deletions
-2
View File
@@ -153,7 +153,6 @@ static int getopt_long_option(FAR struct getopt_s *go,
default:
goto errout;
break;
}
}
else
@@ -213,7 +212,6 @@ static int getopt_long_option(FAR struct getopt_s *go,
default:
goto errout;
break;
}
}