mirror of
https://github.com/esphome/esphome.git
synced 2026-10-07 11:26:39 +00:00
[core] Silence -Wunused-function for user builds (#19571)
Co-authored-by: Claude <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude
parent
c27cbb132d
commit
071fc08e32
@@ -769,6 +769,7 @@ async def to_code(config: ConfigType) -> None:
|
|||||||
cg.add_build_flag("-Wno-unused-variable")
|
cg.add_build_flag("-Wno-unused-variable")
|
||||||
cg.add_build_flag("-Wno-unused-but-set-variable")
|
cg.add_build_flag("-Wno-unused-but-set-variable")
|
||||||
cg.add_build_flag("-Wno-sign-compare")
|
cg.add_build_flag("-Wno-sign-compare")
|
||||||
|
cg.add_build_flag("-Wno-unused-function")
|
||||||
# C++20 deprecated ++/--, compound assignment, and chained assignment on
|
# C++20 deprecated ++/--, compound assignment, and chained assignment on
|
||||||
# volatile lvalues; GCC warns via -Wvolatile, on by default at gnu++20.
|
# volatile lvalues; GCC warns via -Wvolatile, on by default at gnu++20.
|
||||||
# C++23 (P2327R1) removed the deprecation for compound assignment, so the
|
# C++23 (P2327R1) removed the deprecation for compound assignment, so the
|
||||||
|
|||||||
Reference in New Issue
Block a user