Skip to content

Commit

Permalink
[SYCL] Prevent object copy by use of auto keyword (#13034)
Browse files Browse the repository at this point in the history
Signed-off-by: Marcos Maronas <marcos.maronas@intel.com>
  • Loading branch information
maarquitos14 committed Mar 15, 2024
1 parent 1953dcf commit 7a84121
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sycl/tools/sycl-ls/sycl-ls.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ static void printWarningIfFiltersUsed(bool &SuppressNumberPrinting) {
// Unset filter related environment variables namely, SYCL_DEVICE_FILTER,
// ONEAPI_DEVICE_SELECTOR, and SYCL_DEVICE_ALLOWLIST.
static void unsetFilterEnvVars() {
for (auto it : FilterEnvVars) {
for (const auto &it : FilterEnvVars) {
#ifdef _WIN32
_putenv_s(it.c_str(), "");
#else
Expand Down

0 comments on commit 7a84121

Please sign in to comment.