-
Notifications
You must be signed in to change notification settings - Fork 7.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Replace diagnostic pragmas with TOOLCHAIN_*
macros
#84065
Replace diagnostic pragmas with TOOLCHAIN_*
macros
#84065
Conversation
226f7d9
to
55820c5
Compare
TOOLCHAIN_*
macros
55820c5
to
5e07390
Compare
ac4636e
to
67c4390
Compare
signal.h looks fine. I suspect @nordic-krch should also review |
a143260
to
d0fa2c4
Compare
897df83
to
baae26c
Compare
baae26c
to
9c7cca2
Compare
The TOOLCHAIN_IGNORE_WSHADOW_BEGIN and TOOLCHAIN_IGNORE_WSHADOW_END macros can be replaced with the more generic TOOLCHAIN_DISABLE_WARNING(TOOLCHAIN_WARNING_SHADOW) and TOOLCHAIN_ENABLE_WARNING(TOOLCHAIN_WARNING_SHADOW) macros. Signed-off-by: Tom Hughes <tomhughes@chromium.org>
The TOOLCHAIN_DISABLE_WARNING/TOOLCHAIN_ENABLE_WARNING macros are easier to read and compiler agnostic. Signed-off-by: Tom Hughes <tomhughes@chromium.org>
9c7cca2
to
9da9bf1
Compare
Many warnings were disabled for all compilers, even though they are gcc-specific warnings. Now that clang has -Wunknown-warning-option enabled, this can cause compilation failures when building with clang toolchains. Use TOOLCHAIN_DISABLE_GCC_WARNING for all gcc-specific macros. https://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html https://clang.llvm.org/docs/DiagnosticsReference.html Fixes: zephyrproject-rtos#84138 Signed-off-by: Tom Hughes <tomhughes@chromium.org>
9da9bf1
to
8085f9a
Compare
@tejlmand This one is ready now that all dependencies have been merged. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, thanks for this and all the other cleanups 👍
I need another approver for this to be merged. @dcpleung @cfriedt @nordic-krch Would any of you be able to take a look? Thanks! |
These macros were recently introduced and replaced everywhere (zephyrproject-rtos#84065), but this was missed. Signed-off-by: Tom Hughes <tomhughes@chromium.org>
These macros were recently introduced and replaced everywhere (zephyrproject-rtos#84065), but this was missed. Signed-off-by: Tom Hughes <tomhughes@chromium.org>
…ning zephyrproject-rtos#84065 replaced diagnostic pragmas with TOOLCHAIN_* macros, but we don't need to use that here since __used is a cleaner way to indicate that the function is used and will also prevent it from being optimized away at link time if LTO is enabled. Signed-off-by: Tom Hughes <tomhughes@chromium.org>
…ning zephyrproject-rtos#84065 replaced diagnostic pragmas with TOOLCHAIN_* macros, but we don't need to use that here since __used is a cleaner way to indicate that the function is used and will also prevent it from being optimized away at link time if LTO is enabled. Signed-off-by: Tom Hughes <tomhughes@chromium.org>
These macros were recently introduced and replaced everywhere (#84065), but this was missed. Signed-off-by: Tom Hughes <tomhughes@chromium.org>
The
TOOLCHAIN_DISABLE_WARNING
/TOOLCHAIN_ENABLE_WARNING
macros are easier to read and compiler agnostic.Depends on #84063
Fixes #84138