Skip to content

Commit 7a84121

Browse files
authored
[SYCL] Prevent object copy by use of auto keyword (#13034)
Signed-off-by: Marcos Maronas <[email protected]>
1 parent 1953dcf commit 7a84121

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sycl/tools/sycl-ls/sycl-ls.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@ static void printWarningIfFiltersUsed(bool &SuppressNumberPrinting) {
187187
// Unset filter related environment variables namely, SYCL_DEVICE_FILTER,
188188
// ONEAPI_DEVICE_SELECTOR, and SYCL_DEVICE_ALLOWLIST.
189189
static void unsetFilterEnvVars() {
190-
for (auto it : FilterEnvVars) {
190+
for (const auto &it : FilterEnvVars) {
191191
#ifdef _WIN32
192192
_putenv_s(it.c_str(), "");
193193
#else

0 commit comments

Comments
 (0)