public inbox for passt-dev@passt.top
 help / color / mirror / code / Atom feed
From: Stefano Brivio <sbrivio@redhat.com>
To: passt-dev@passt.top
Subject: [PATCH] util.h: Add missing gcc pragma push before pragma pop
Date: Wed, 12 Oct 2022 17:45:40 +0200	[thread overview]
Message-ID: <20221012154540.1650617-1-sbrivio@redhat.com> (raw)

While building with clang:

  ./util.h:176:24: warning: pragma diagnostic pop could not pop, no matching push [-Wunknown-pragmas]

Signed-off-by: Stefano Brivio <sbrivio@redhat.com>
---
 util.h | 1 +
 1 file changed, 1 insertion(+)

diff --git a/util.h b/util.h
index b1eadfd..4d1b375 100644
--- a/util.h
+++ b/util.h
@@ -165,6 +165,7 @@
 struct ctx;
 
 struct ipv6hdr {
+#pragma GCC diagnostic push
 #pragma GCC diagnostic ignored "-Wpedantic"
 #if __BYTE_ORDER == __BIG_ENDIAN
 	uint8_t			version:4,
-- 
@@ -165,6 +165,7 @@
 struct ctx;
 
 struct ipv6hdr {
+#pragma GCC diagnostic push
 #pragma GCC diagnostic ignored "-Wpedantic"
 #if __BYTE_ORDER == __BIG_ENDIAN
 	uint8_t			version:4,
-- 
2.35.1


             reply	other threads:[~2022-10-12 15:45 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-10-12 15:45 Stefano Brivio [this message]
2022-10-13  1:14 ` [PATCH] util.h: Add missing gcc pragma push before pragma pop David Gibson

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20221012154540.1650617-1-sbrivio@redhat.com \
    --to=sbrivio@redhat.com \
    --cc=passt-dev@passt.top \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).