summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDodji Seketeli <dodji@redhat.com>2022-03-01 11:34:46 +0100
committerDodji Seketeli <dodji@redhat.com>2022-03-01 11:43:19 +0100
commit4358470f07abdc5b6aa7164de2cfc6b7a68d33c8 (patch)
treec8c94bd234f1608e1298106c824dc5f4fa00d96a
parentabilint --show-type-use: Show results for global decls that have no symbols (diff)
downloadlibabigail-4358470f07abdc5b6aa7164de2cfc6b7a68d33c8.tar.gz
libabigail-4358470f07abdc5b6aa7164de2cfc6b7a68d33c8.tar.bz2
libabigail-4358470f07abdc5b6aa7164de2cfc6b7a68d33c8.tar.xz
reader: Fix a compilation warning
* src/abg-reader.cc (build_var_decl): Add braces to an 'if' statement. Signed-off-by: Dodji Seketeli <dodji@redhat.com>
-rw-r--r--src/abg-reader.cc8
1 files 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,
3802 3802
3803 ctxt.push_decl_to_current_scope(decl, add_to_current_scope); 3803 ctxt.push_decl_to_current_scope(decl, add_to_current_scope);
3804 if (add_to_current_scope) 3804 if (add_to_current_scope)
3805 // This variable is really being kept in the IR, so let's record 3805 {
3806 // that it's using its type. 3806 // This variable is really being kept in the IR, so let's record
3807 RECORD_ARTIFACT_AS_USED_BY(ctxt, underlying_type, decl); 3807 // that it's using its type.
3808 RECORD_ARTIFACT_AS_USED_BY(ctxt, underlying_type, decl);
3809 }
3808 3810
3809 if (decl->get_symbol() && decl->get_symbol()->is_public()) 3811 if (decl->get_symbol() && decl->get_symbol()->is_public())
3810 decl->set_is_in_public_symbol_table(true); 3812 decl->set_is_in_public_symbol_table(true);