]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
Fix some inconsistent uses of the VG_XACT_CLO macro, by putting an
authorJulian Seward <jseward@acm.org>
Thu, 5 Feb 2015 10:05:43 +0000 (10:05 +0000)
committerJulian Seward <jseward@acm.org>
Thu, 5 Feb 2015 10:05:43 +0000 (10:05 +0000)
empty then-body after the condition rather than merely ";", which is
confusing and is inconsistent with the rest of the arg handling code.
No functional change.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@14904

coregrind/m_main.c

index fe0aef786aee06646a04044a6dcaaca367fd7930..96ebe3e6bb36c8f22185e4be3808f41bed7da6ff 100644 (file)
@@ -659,15 +659,14 @@ void main_process_cmd_line_options ( /*OUT*/Bool* logging_to_fd,
                                VG_(clo_merge_recursive_frames), 0,
                                VG_DEEPEST_BACKTRACE) {}
 
-      else if VG_XACT_CLO(arg, "--smc-check=none",  VG_(clo_smc_check),
-                                                    Vg_SmcNone);
-      else if VG_XACT_CLO(arg, "--smc-check=stack", VG_(clo_smc_check),
-                                                    Vg_SmcStack);
-      else if VG_XACT_CLO(arg, "--smc-check=all",   VG_(clo_smc_check),
-                                                    Vg_SmcAll);
+      else if VG_XACT_CLO(arg, "--smc-check=none", 
+                          VG_(clo_smc_check), Vg_SmcNone) {}
+      else if VG_XACT_CLO(arg, "--smc-check=stack",
+                          VG_(clo_smc_check), Vg_SmcStack) {}
+      else if VG_XACT_CLO(arg, "--smc-check=all",
+                          VG_(clo_smc_check), Vg_SmcAll) {}
       else if VG_XACT_CLO(arg, "--smc-check=all-non-file",
-                                                    VG_(clo_smc_check),
-                                                    Vg_SmcAllNonFile);
+                          VG_(clo_smc_check), Vg_SmcAllNonFile) {}
 
       else if VG_USETX_CLO (arg, "--kernel-variant",
                             "bproc,"
@@ -687,22 +686,24 @@ void main_process_cmd_line_options ( /*OUT*/Bool* logging_to_fd,
                        VG_(clo_vex_control).iropt_verbosity, 0, 10) {}
       else if VG_BINT_CLO(arg, "--vex-iropt-level",
                        VG_(clo_vex_control).iropt_level, 0, 2) {}
+
       else if VG_XACT_CLO(arg, 
                        "--vex-iropt-register-updates=sp-at-mem-access",
                        VG_(clo_vex_control).iropt_register_updates,
-                       VexRegUpdSpAtMemAccess);
+                       VexRegUpdSpAtMemAccess) {}
       else if VG_XACT_CLO(arg, 
                        "--vex-iropt-register-updates=unwindregs-at-mem-access",
                        VG_(clo_vex_control).iropt_register_updates,
-                       VexRegUpdUnwindregsAtMemAccess);
+                       VexRegUpdUnwindregsAtMemAccess) {}
       else if VG_XACT_CLO(arg, 
                        "--vex-iropt-register-updates=allregs-at-mem-access",
                        VG_(clo_vex_control).iropt_register_updates,
-                       VexRegUpdAllregsAtMemAccess);
+                       VexRegUpdAllregsAtMemAccess) {}
       else if VG_XACT_CLO(arg, 
                        "--vex-iropt-register-updates=allregs-at-each-insn",
                        VG_(clo_vex_control).iropt_register_updates,
-                       VexRegUpdAllregsAtEachInsn);
+                       VexRegUpdAllregsAtEachInsn) {}
+
       else if VG_BINT_CLO(arg, "--vex-iropt-unroll-thresh",
                        VG_(clo_vex_control).iropt_unroll_thresh, 0, 400) {}
       else if VG_BINT_CLO(arg, "--vex-guest-max-insns",
@@ -745,7 +746,7 @@ void main_process_cmd_line_options ( /*OUT*/Bool* logging_to_fd,
                               VG_(clo_xml_user_comment)) {}
 
       else if VG_BOOL_CLO(arg, "--default-suppressions",
-                          VG_(clo_default_supp)) { }
+                          VG_(clo_default_supp)) {}
 
       else if VG_STR_CLO(arg, "--suppressions", tmp_str) {
          VG_(addToXA)(VG_(clo_suppressions), &tmp_str);