]> git.seodisparate.com - MeterForPulseAudio/commitdiff
Fix warning about case-fall-through master
authorStephen Seo <seo.disparate@gmail.com>
Mon, 20 Aug 2018 06:40:39 +0000 (15:40 +0900)
committerStephen Seo <seo.disparate@gmail.com>
Mon, 20 Aug 2018 06:40:39 +0000 (15:40 +0900)
The comment that fixes the warning is placed in a situation where it is
expected to fall through in the switch statement.

src/MfPA/GetSinkSourceInfo.cpp

index 20f15b84bf406cfc88f6f5da4b58801e16dedff8..a8f638366947b7c576965ca87a9886b9904c755c 100644 (file)
@@ -69,6 +69,7 @@ void MfPA::GetSinkSourceInfo::get_state_callback(pa_context* c, void* userdata)
     case PA_CONTEXT_FAILED:
         std::cerr << "ERROR during context state callback: "
             << pa_strerror(pa_context_errno(c)) << std::endl;
+        // fall through
     case PA_CONTEXT_TERMINATED:
         getInfo->run = false;
         break;