diff options
author | Matthew Bentham <Matthew.Bentham@arm.com> | 2020-02-03 12:05:18 +0000 |
---|---|---|
committer | Matthew Bentham <matthew.bentham@arm.com> | 2020-02-12 15:49:42 +0000 |
commit | 0082c366fc2db46ee2cb0e171c588dfc8f26ce73 (patch) | |
tree | d20d8ed060fbc3ad8cc93a9c9cba945b7759cad5 /src/runtime | |
parent | 80838f166ee1d6eb152dc85f21642157b80301c0 (diff) | |
download | ComputeLibrary-0082c366fc2db46ee2cb0e171c588dfc8f26ce73.tar.gz |
Silence warnings related to "control reaches end of non-void function"
Move ERROR macros out of default branches in switch statements, to the
end of the function.
Signed-off-by: Matthew Bentham <Matthew.Bentham@arm.com>
Change-Id: I66d47eb0f2fc0a3ab4bf2dd4a01d8b0907786c98
Reviewed-on: https://review.mlplatform.org/c/ml/ComputeLibrary/+/2709
Tested-by: Arm Jenkins <bsgcomp@arm.com>
Reviewed-by: Pablo Marquez <pablo.tello@arm.com>
Reviewed-by: Sang-Hoon Park <sang-hoon.park@arm.com>
Comments-Addressed: Arm Jenkins <bsgcomp@arm.com>
Diffstat (limited to 'src/runtime')
-rw-r--r-- | src/runtime/SchedulerFactory.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/runtime/SchedulerFactory.cpp b/src/runtime/SchedulerFactory.cpp index 8bdd510367..63a130dc2a 100644 --- a/src/runtime/SchedulerFactory.cpp +++ b/src/runtime/SchedulerFactory.cpp @@ -1,5 +1,5 @@ /* - * Copyright (c) 2019 ARM Limited. + * Copyright (c) 2019-2020 ARM Limited. * * SPDX-License-Identifier: MIT * @@ -74,9 +74,9 @@ std::unique_ptr<IScheduler> SchedulerFactory::create(Type type) } default: { - ARM_COMPUTE_ERROR("Invalid Scheduler type"); break; } } + ARM_COMPUTE_ERROR("Invalid Scheduler type"); } } // namespace arm_compute |