aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAvatar Saleem Abdulrasool <compnerd@compnerd.org> 2016-02-16 21:17:27 -0800
committerAvatar Saleem Abdulrasool <compnerd@compnerd.org> 2016-02-16 22:47:55 -0800
commit054f41f3d4cb3167fb4f6dfb694d5111e36dcb44 (patch)
tree764761ba128834b78a5b8781798aa4891f96a27b
parent0161a0f68496682d03c408c5e8c620b620a31611 (diff)
downloadpaludis-054f41f3d4cb3167fb4f6dfb694d5111e36dcb44.tar.gz
paludis-054f41f3d4cb3167fb4f6dfb694d5111e36dcb44.tar.xz
cave: add missing braces for scoping
This had never been noticed as it only effects the status message. This was identified by the new GCC warning (-Wmisleading-indentation). src/clients/cave/cmd_generate_metadata.cc:264:17: warning: statement is indented as if it were guarded by... [-Wmisleading-indentation] display_callback(DoneOne()); ^~~~~~~~~~~~~~~~ src/clients/cave/cmd_generate_metadata.cc:246:13: note: ...this 'for' clause, but it is not for (PackageID::MetadataConstIterator m(id->begin_metadata()), m_end(id->end_metadata()); m_end != m; ++m) ^~~
-rw-r--r--src/clients/cave/cmd_generate_metadata.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/clients/cave/cmd_generate_metadata.cc b/src/clients/cave/cmd_generate_metadata.cc
index b3425f8..955a328 100644
--- a/src/clients/cave/cmd_generate_metadata.cc
+++ b/src/clients/cave/cmd_generate_metadata.cc
@@ -244,6 +244,7 @@ namespace
return;
for (PackageID::MetadataConstIterator m(id->begin_metadata()), m_end(id->end_metadata()); m_end != m; ++m)
+ {
try
{
MetadataVisitor v;
@@ -262,6 +263,7 @@ namespace
}
display_callback(DoneOne());
+ }
}
}
}