Skip to content

Commit c44a84a

Browse files
[NFC][SYCL] Fix compiler warnings (#7024)
* Unused capture * "default" case in fully-covered switch
1 parent b449280 commit c44a84a

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

sycl/source/detail/program_manager/program_manager.cpp

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -564,11 +564,10 @@ RT::PiProgram ProgramManager::getBuiltPIProgram(
564564
switch (AspectNum) {
565565
#include <sycl/info/aspects.def>
566566
#include <sycl/info/aspects_deprecated.def>
567-
default:
568-
throw sycl::exception(
569-
errc::kernel_not_supported,
570-
"Unknown aspect " + std::to_string(static_cast<unsigned>(AspectNum)));
571567
}
568+
throw sycl::exception(errc::kernel_not_supported,
569+
"Unknown aspect " +
570+
std::to_string(static_cast<unsigned>(AspectNum)));
572571
};
573572
#undef __SYCL_ASPECT_DEPRECATED_ALIAS
574573
#undef __SYCL_ASPECT_DEPRECATED
@@ -594,7 +593,7 @@ RT::PiProgram ProgramManager::getBuiltPIProgram(
594593
}
595594

596595
auto BuildF = [this, &Img, &Context, &ContextImpl, &Device, Prg, &CompileOpts,
597-
&LinkOpts, SpecConsts, &KernelName] {
596+
&LinkOpts, SpecConsts] {
598597
applyOptionsFromImage(CompileOpts, LinkOpts, Img);
599598

600599
const detail::plugin &Plugin = ContextImpl->getPlugin();

0 commit comments

Comments
 (0)