mirror of
https://github.com/espressif/openthread.git
synced 2026-06-05 21:14:49 +00:00
[gn] enable warnings (#12121)
This commit suppresses the undefined warnings in mbedtls. To detect such warnings in OpenThread, this commit also enables warnings check for gn BUILD and fixes issues found.
This commit is contained in:
Vendored
+11
@@ -41,8 +41,18 @@ config("mbedtls_config") {
|
||||
]
|
||||
|
||||
defines = [ "MBEDTLS_CONFIG_FILE=\"${mbedtls_config_file}\"" ]
|
||||
}
|
||||
|
||||
config("warnings_fix_config") {
|
||||
cflags = [
|
||||
"-Wno-conversion",
|
||||
"-Wno-undef",
|
||||
]
|
||||
}
|
||||
|
||||
group("warnings_fix") {
|
||||
public_configs = [
|
||||
":warnings_fix_config",
|
||||
]
|
||||
}
|
||||
|
||||
@@ -314,6 +324,7 @@ static_library("mbedtls") {
|
||||
]
|
||||
|
||||
public_deps = mbedtls_deps
|
||||
public_deps += [ ":warnings_fix" ]
|
||||
|
||||
public_configs = [ ":mbedtls_config" ]
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user