* [PATCH] reader: Fix a compilation warning
@ 2022-03-01 10:47 Dodji Seketeli
0 siblings, 0 replies; only message in thread
From: Dodji Seketeli @ 2022-03-01 10:47 UTC (permalink / raw)
To: libabigail
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
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2022-03-01 10:47 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-03-01 10:47 [PATCH] reader: Fix a compilation warning Dodji Seketeli
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).