public inbox for libabigail@sourceware.org
 help / color / mirror / Atom feed
From: Dodji Seketeli <dodji@seketeli.org>
To: libabigail@sourceware.org
Subject: [PATCH] reader: Fix a compilation warning
Date: Tue, 01 Mar 2022 11:47:51 +0100	[thread overview]
Message-ID: <87h78ij6eg.fsf@seketeli.org> (raw)

Hello,

I came across this compilation warning.  Fixed thus.

	* src/abg-reader.cc (build_var_decl): Add braces to an 'if'
	statement.

Signed-off-by: Dodji Seketeli <dodji@redhat.com>
---
 src/abg-reader.cc | 8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)

diff --git a/src/abg-reader.cc b/src/abg-reader.cc
index 7070fa9f..31885692 100644
--- a/src/abg-reader.cc
+++ b/src/abg-reader.cc
@@ -3802,9 +3802,11 @@ build_var_decl(read_context&	ctxt,
 
   ctxt.push_decl_to_current_scope(decl, add_to_current_scope);
   if (add_to_current_scope)
-    // This variable is really being kept in the IR, so let's record
-    // that it's using its type.
-    RECORD_ARTIFACT_AS_USED_BY(ctxt, underlying_type, decl);
+    {
+      // This variable is really being kept in the IR, so let's record
+      // that it's using its type.
+      RECORD_ARTIFACT_AS_USED_BY(ctxt, underlying_type, decl);
+    }
 
   if (decl->get_symbol() && decl->get_symbol()->is_public())
     decl->set_is_in_public_symbol_table(true);
-- 
2.35.0.rc2


-- 
		Dodji

                 reply	other threads:[~2022-03-01 10:47 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=87h78ij6eg.fsf@seketeli.org \
    --to=dodji@seketeli.org \
    --cc=libabigail@sourceware.org \
    /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.
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 read-only IMAP folder(s) and NNTP newsgroup(s).