diff options
| author | Masahiro Yamada <[email protected]> | 2023-12-03 10:25:27 +0000 |
|---|---|---|
| committer | Masahiro Yamada <[email protected]> | 2023-12-28 07:22:47 +0000 |
| commit | 9ad86d747c46f2bdc097c908481647fcdda1d035 (patch) | |
| tree | 89b9a309643d465b0b170479750ed822788339de /scripts/kconfig/expr.c | |
| parent | kconfig: add include guard to lkc_proto.h (diff) | |
| download | kernel-9ad86d747c46f2bdc097c908481647fcdda1d035.tar.gz kernel-9ad86d747c46f2bdc097c908481647fcdda1d035.zip | |
kconfig: remove unreachable printf()
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 <[email protected]>
Diffstat (limited to 'scripts/kconfig/expr.c')
| -rw-r--r-- | scripts/kconfig/expr.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/scripts/kconfig/expr.c b/scripts/kconfig/expr.c index 81ebf8108ca7..a290de36307b 100644 --- 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; } |
