Skip to content

Using -Wno-strict-aliasing is a very bad idea. #336

@mvduin

Description

@mvduin

-Wno-strict-aliasing suppresses warnings that indicate undefined behaviour (due to violating strict aliasing rules), which may cause miscompilation and crashes.

It's fine if you don't want to deal with the strict aliasing rules (I don't either), but then you should use -fno-strict-aliasing (which allows code to simply ignore strict aliasing rules without causing undefined behaviour) instead of -Wno-strict-aliasing.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions