public inbox for passt-dev@passt.top
 help / color / mirror / code / Atom feed
* [PATCH] Avoid clang warnings in fwd.h
@ 2026-02-23 17:29 Peter Foley
  0 siblings, 0 replies; only message in thread
From: Peter Foley @ 2026-02-23 17:29 UTC (permalink / raw)
  To: passt-dev; +Cc: Peter Foley

e.g.
./fwd.h:65:63: warning: '_Static_assert' with no message is a C23 extension [-Wc23-extensions]
   65 | static_assert(sizeof(union fwd_listen_ref) == sizeof(uint32_t));

Signed-off-by: Peter Foley <pefoley@google.com>
---
 fwd.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/fwd.h b/fwd.h
index 1607011..7d299b6 100644
--- a/fwd.h
+++ b/fwd.h
@@ -62,7 +62,7 @@ union fwd_listen_ref {
 	};
 	uint32_t u32;
 };
-static_assert(sizeof(union fwd_listen_ref) == sizeof(uint32_t));
+static_assert(sizeof(union fwd_listen_ref) == sizeof(uint32_t), "");
 
 enum fwd_ports_mode {
 	FWD_UNSET = 0,
-- 
2.53.0.371.g1d285c8824-goog


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2026-02-23 17:29 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-02-23 17:29 [PATCH] Avoid clang warnings in fwd.h Peter Foley

Code repositories for project(s) associated with this public inbox

	https://passt.top/passt

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 IMAP folder(s).