Developer Guide and Reference

ID 767253
Date 10/31/2024
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

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

None

Alternate Options

None