osaf/tools/safimm/immdump/imm_dumper.cc |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)


Correct code indentation to fix the following compilation error discovered when
using GCC 6:

imm_dumper.cc: In function 'int main(int, char**)':
imm_dumper.cc:149:5: error: this 'if' clause does not guard... 
[-Werror=misleading-indentation]
     if ((c = getopt_long(argc, argv, "hp:x:c:a:", long_options, NULL)) == -1)
     ^~
imm_dumper.cc:152:13: note: ...this statement, but the latter is misleadingly 
indented as if it is guarded by the 'if'
             switch (c) {
             ^~~~~~

diff --git a/osaf/tools/safimm/immdump/imm_dumper.cc 
b/osaf/tools/safimm/immdump/imm_dumper.cc
--- a/osaf/tools/safimm/immdump/imm_dumper.cc
+++ b/osaf/tools/safimm/immdump/imm_dumper.cc
@@ -146,8 +146,8 @@ int main(int argc, char* argv[])
     }
 
     while (1) {
-    if ((c = getopt_long(argc, argv, "hp:x:c:a:", long_options, NULL)) == -1)
-            break;
+            if ((c = getopt_long(argc, argv, "hp:x:c:a:", long_options, NULL)) 
== -1)
+                    break;
 
             switch (c) {
                 case 'h':

------------------------------------------------------------------------------
_______________________________________________
Opensaf-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensaf-devel

Reply via email to