Fix implicit-fallthrough warnings. DO NOT MERGE.
[android/platform-hardware-interfaces.git] / wifi / 1.2 / default / wifi_legacy_hal.cpp
index 375204c70dbdd31d166ea3650ae8e744db2edb27..55ec96dd018a617c225686c940c0d775d2f1d71a 100644 (file)
@@ -550,6 +550,7 @@ wifi_error WifiLegacyHal::startGscan(
                 }
                 // Fall through if failed. Failure to retrieve cached scan
                 // results should trigger a background scan failure.
                 }
                 // Fall through if failed. Failure to retrieve cached scan
                 // results should trigger a background scan failure.
+                [[fallthrough]];
                 case WIFI_SCAN_FAILED:
                     on_failure_user_callback(id);
                     on_gscan_event_internal_callback = nullptr;
                 case WIFI_SCAN_FAILED:
                     on_failure_user_callback(id);
                     on_gscan_event_internal_callback = nullptr;