Development Reference Guides

Contents

Wcheck-unicode-security

Determines whether the compiler performs source code checking for Unicode vulnerabilities.

Syntax

Linux:
-Wcheck-unicode-security
-Wno-check-unicode-security
Windows:
/Wcheck-unicode-security
/Wno-check-unicode-security
Arguments
None
Default
Wno-check-unicode-security
The compiler does not perform source code checking for Unicode vulnerabilities.
Description
This option determines whether the compiler performs source code checking for Unicode vulnerabilities.
Option
Wcheck-unicode-security
enables Unicode checking. The compiler will detect and warn about Unicode constructs that can be exploited by using bi-directional formatting codes, zero-width characters in strings, and use of zero-width characters and homoglyphs in identifiers.
Option
Wno-check-unicode-security
disables Unicode checking.
This option only applies to host compilation. When offloading is enabled, it does not impact device-specific compilation.
IDE Equivalent
Visual Studio:
DPC++:
DPC++ > Diagnostics > Check Unicode Security
C/C++:
C/C++ > Diagnostics [Intel C++] > Check Unicode Security
Eclipse:
DPC++:
Intel(R) oneAPI DPC++ Compiler > Diagnostics > Check Unicode Security
C/C++:
Intel C++ Compiler > Compilation Diagnostics > Check Unicode Security
Alternate Options
None

Product and Performance Information

1

Performance varies by use, configuration and other factors. Learn more at www.Intel.com/PerformanceIndex.