Skip to content

Commit 8bc5b9c

Browse files
authored
Merge pull request #627 from XrXr/werror-implicit-function-declaration
Build with `-Werror=implicit-function-declaration`
2 parents 4e1ec89 + 64282a7 commit 8bc5b9c

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

build.rs

+2
Original file line numberDiff line numberDiff line change
@@ -327,6 +327,8 @@ mod c {
327327
// in https://github.com/rust-lang/compiler-rt/blob/c8fbcb3/cmake/config-ix.cmake#L19.
328328
cfg.flag_if_supported("-fomit-frame-pointer");
329329
cfg.define("VISIBILITY_HIDDEN", None);
330+
// Avoid implicitly creating references to undefined functions
331+
cfg.flag("-Werror=implicit-function-declaration");
330332
}
331333

332334
// int_util.c tries to include stdlib.h if `_WIN32` is defined,

0 commit comments

Comments
 (0)