Intel® oneAPI DPC++/C++ Compiler
Developer Guide and Reference
A newer version of this document is available. Customers should click here to go to the newest version.
Visible to Intel only — GUID: GUID-DD48404E-372F-44CE-BEB9-775D64F91209
Visible to Intel only — GUID: GUID-DD48404E-372F-44CE-BEB9-775D64F91209
Wstrict-aliasing
Determines whether warnings are issued for code that might violate the optimizer's strict aliasing rules.
Syntax
Linux: |
-Wstrict-aliasing -Wno-strict-aliasing |
Windows: |
/Wstrict-aliasing /Wno-strict-aliasing |
Arguments
None
Default
Wno-strict-aliasing |
No warnings are issued for code that might violate the optimizer's strict aliasing rules. |
Description
This option determines whether warnings are issued for code that might violate the optimizer's strict aliasing rules.
Options -fstrict-aliasing and -Ofast also enable strict aliasing.
IDE Equivalent
Alternate Options
None