devicetree-compiler.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/2] libfdt: Fix -Wextra -Wpedantic warnings
@ 2024-11-16 10:12 Bingwu Zhang
  2024-11-16 10:12 ` [PATCH 1/2] libfdt: Suppress a unused parameter warning in overlay_fixup_one_phandle Bingwu Zhang
  2024-11-16 10:12 ` [PATCH 2/2] libfdt: Remove extra semi-colons outside functions Bingwu Zhang
  0 siblings, 2 replies; 7+ messages in thread
From: Bingwu Zhang @ 2024-11-16 10:12 UTC (permalink / raw)
  To: David Gibson, devicetree-compiler; +Cc: Bingwu Zhang, devicetree, ~xtex/staging

From: Bingwu Zhang <xtexchooser@duck.com>

This fixes several warning when compiling with CFLAGS='-Wall -Wextra
 -Wpedantic'. When using together with '-Werror' flag, these warnings becomes
 fatal errors that fails the build.

Both of the original errors and fixes for them are tested with GCC 13
 and clang 18.

Bingwu Zhang (2):
  libfdt: Suppress a unused parameter warning in
    overlay_fixup_one_phandle
  libfdt: Remove extra semi-colons outside functions

 libfdt/fdt_overlay.c |  3 ++-
 libfdt/libfdt.h      | 20 ++++++++++----------
 2 files changed, 12 insertions(+), 11 deletions(-)


base-commit: 2d10aa2afe35527728db30b35ec491ecb6959e5c
-- 
2.47.0


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2024-11-18 10:15 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-11-16 10:12 [PATCH 0/2] libfdt: Fix -Wextra -Wpedantic warnings Bingwu Zhang
2024-11-16 10:12 ` [PATCH 1/2] libfdt: Suppress a unused parameter warning in overlay_fixup_one_phandle Bingwu Zhang
2024-11-18  3:25   ` David Gibson
2024-11-18 10:15     ` xtex
2024-11-18 10:15     ` xtex
2024-11-16 10:12 ` [PATCH 2/2] libfdt: Remove extra semi-colons outside functions Bingwu Zhang
2024-11-18  3:32   ` David Gibson

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).