Intel® C++ Compiler Classic Developer Guide and Reference

ID 767249
Date 7/13/2023
Public
Document Table of Contents

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

macOS:

-Wstrict-aliasing

-Wno-strict-aliasing

Windows:

None

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. These warnings will only be issued if you also specify option -ansi-alias or option -fstrict-aliasing.

IDE Equivalent

None

Alternate Options

None

See Also