lmi-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[lmi-commits] [lmi] master 8a5eef1: Avoid implicit-fallthrough warnings


From: Greg Chicares
Subject: [lmi-commits] [lmi] master 8a5eef1: Avoid implicit-fallthrough warnings
Date: Fri, 2 Mar 2018 21:20:31 -0500 (EST)

branch: master
commit 8a5eef1efbaa28f306c08227db7524a296089971
Author: Gregory W. Chicares <address@hidden>
Commit: Gregory W. Chicares <address@hidden>

    Avoid implicit-fallthrough warnings
---
 getopt.cpp       | 2 +-
 ihs_avstrtgy.cpp | 1 +
 2 files changed, 2 insertions(+), 1 deletion(-)

diff --git a/getopt.cpp b/getopt.cpp
index 655b9c5..1ddf48e 100644
--- a/getopt.cpp
+++ b/getopt.cpp
@@ -599,7 +599,7 @@ GetOpt::operator()()
                 return '?';
 
               case LIST_ARG:
-                list_option = pfound;
+                list_option = pfound; // fall through
 
               default:
                 optarg = nameend + 1;
diff --git a/ihs_avstrtgy.cpp b/ihs_avstrtgy.cpp
index e6b20ac..28a1e7e 100644
--- a/ihs_avstrtgy.cpp
+++ b/ihs_avstrtgy.cpp
@@ -261,6 +261,7 @@ double AccountValue::DoPerformPmtStrategy
                 return GetModalMinPrem(Year, a_CurrentMode, sa);
                 }
             }
+            break;
         case mce_pmt_target:
             {
             int const target_year = TgtPremFixedAtIssue ? 0 : Year;



reply via email to

[Prev in Thread] Current Thread [Next in Thread]