-
Notifications
You must be signed in to change notification settings - Fork 1
clang_nowarn_sim_attr_printf
Tsukasa OI edited this page Oct 30, 2022
·
6 revisions
- Status: Merged for GDB 13 but another patchset is required to fix new bugs
- Branch:
clang-nowarn-sim-attr-printf
- Tracking PR: #60 (view Pull Request and Diff)
- Mailing List:
-
Clang: Suppress warnings if built with Clang (
sim
)
PATCH v2 of that moved PATCH v1 1/4 to this patchset.
Clang generates a warning if the format string of a printf
-like function is not a literal (-Wformat-nonliteral
).
On the default configuration, it causes a build failure (unless --disable-werror
is specified).
To avoid warnings on the printf
-like wrapper, it requires proper __attribute__((format))
and we have ATTRIBUTE_PRINTF
macro for this reason.
This patchset adds ATTRIBUTE_PRINTF
to all function declarations that require ATTRIBUTE_PRINTF
macro.