Skip to content

Commit 7bd22ce

Browse files
committed
[tools] Treat missing return in function as error
1 parent ea1e6ff commit 7bd22ce

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

tools/build_script_generator/common.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -213,6 +213,7 @@ def common_compiler_flags(compiler, target):
213213
"-Werror=maybe-uninitialized",
214214
"-Werror=overflow",
215215
"-Werror=sign-compare",
216+
"-Werror=return-type",
216217
"-Wextra",
217218
"-Wlogical-op",
218219
"-Wpointer-arith",

0 commit comments

Comments
 (0)