projects
/
linux-block.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
405d2cb
)
kconfig: remove unreachable printf()
author
Masahiro Yamada
<masahiroy@kernel.org>
Sun, 3 Dec 2023 10:25:27 +0000
(19:25 +0900)
committer
Masahiro Yamada
<masahiroy@kernel.org>
Thu, 28 Dec 2023 07:22:47 +0000
(16:22 +0900)
Remove the unreachable code detected by clang.
$ make HOSTCC=clang HOSTCFLAGS=-Wunreachable-code defconfig
[ snip ]
scripts/kconfig/expr.c:1134:2: warning: code will never be executed [-Wunreachable-code]
printf("[%dgt%d?]", t1, t2);
^~~~~~
1 warning generated.
Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
scripts/kconfig/expr.c
patch
|
blob
|
blame
|
history
diff --git
a/scripts/kconfig/expr.c
b/scripts/kconfig/expr.c
index 81ebf8108ca748893d469c77af1eebf8ecbf7df2..a290de36307ba8abe184a915fb0a6b6a3b29bbb6 100644
(file)
--- a/
scripts/kconfig/expr.c
+++ b/
scripts/kconfig/expr.c
@@
-1131,7
+1131,6
@@
static int expr_compare_type(enum expr_type t1, enum expr_type t2)
default:
return -1;
}
- printf("[%dgt%d?]", t1, t2);
return 0;
}