Merge pull request #627 from XrXr/werror-implicit-function-declaration
Build with `-Werror=implicit-function-declaration`
This commit is contained in:
commit
e34e130081
1 changed files with 2 additions and 0 deletions
|
|
@ -327,6 +327,8 @@ mod c {
|
|||
// in https://github.com/rust-lang/compiler-rt/blob/c8fbcb3/cmake/config-ix.cmake#L19.
|
||||
cfg.flag_if_supported("-fomit-frame-pointer");
|
||||
cfg.define("VISIBILITY_HIDDEN", None);
|
||||
// Avoid implicitly creating references to undefined functions
|
||||
cfg.flag("-Werror=implicit-function-declaration");
|
||||
}
|
||||
|
||||
// int_util.c tries to include stdlib.h if `_WIN32` is defined,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue