]> sourceware.org Git - libabigail.git/commitdiff
Fix misleading indentation issues
authorDodji Seketeli <dodji@redhat.com>
Wed, 21 Sep 2016 10:04:38 +0000 (12:04 +0200)
committerDodji Seketeli <dodji@redhat.com>
Wed, 21 Sep 2016 10:06:51 +0000 (12:06 +0200)
This patch fixes misleading indentation mistakes reported by GCC 6.1.1

* tools/abipkgdiff.cc (compare): Likewise.
* tools/abisym.cc (main): Fix misleading indentation.

Signed-off-by: Dodji Seketeli <dodji@redhat.com>
tools/abipkgdiff.cc
tools/abisym.cc

index 197a9bdf5065edf6eb1dcfad44bd6666267e27d4..55101534342e0b4dde7182008c6b1e43b6253dad 100644 (file)
@@ -1151,11 +1151,11 @@ compare(const elf_file& elf1,
     emit_prefix("abipkgdiff", cerr)
       << " DONE reading file " << elf2.path << "\n";
 
-if (verbose)
-  emit_prefix("abipkgdiff", cerr)
-    << "  Comparing the ABIs of: \n"
-    << "    " << elf1.path << "\n"
-    << "    " << elf2.path << "\n";
+  if (verbose)
+    emit_prefix("abipkgdiff", cerr)
+      << "  Comparing the ABIs of: \n"
+      << "    " << elf1.path << "\n"
+      << "    " << elf2.path << "\n";
 
   diff = compute_diff(corpus1, corpus2, ctxt);
 
index 0927f96d6454b65ea08ceedc63ceb0d8f0ccc0da..31a08fa819ec6e1f11c857a7bbba8fcbf52893e2 100644 (file)
@@ -162,25 +162,25 @@ main(int argc, char* argv[])
   cout << " found symbol '" << n << "'";
   if (n != sym->get_name())
     cout << " (" << sym->get_name() << ")";
-    cout << ", an instance of "
-        << (elf_symbol::type) sym->get_type()
-        << " of " << sym->get_binding();
-    if (syms.size() > 1 || !sym->get_version().is_empty())
-      {
-       cout << ", of version";
-       if (syms.size () > 1)
-         cout << "s";
-       cout << " ";
-       for (vector<elf_symbol_sptr>::const_iterator i = syms.begin();
-            i != syms.end();
-            ++i)
-         {
-           if (i != syms.begin())
-             cout << ", ";
-           cout << "'" << (*i)->get_version().str() << "'";
-         }
-      }
-    cout << '\n';
+  cout << ", an instance of "
+       << (elf_symbol::type) sym->get_type()
+       << " of " << sym->get_binding();
+  if (syms.size() > 1 || !sym->get_version().is_empty())
+    {
+      cout << ", of version";
+      if (syms.size () > 1)
+       cout << "s";
+      cout << " ";
+      for (vector<elf_symbol_sptr>::const_iterator i = syms.begin();
+          i != syms.end();
+          ++i)
+       {
+         if (i != syms.begin())
+           cout << ", ";
+         cout << "'" << (*i)->get_version().str() << "'";
+       }
+    }
+  cout << '\n';
 
   return 0;
 }
This page took 0.092251 seconds and 5 git commands to generate.