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

    pFad - Phonifier reborn

    Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

    Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


    Alternative Proxies:

    Alternative Proxy

    pFad Proxy

    pFad v3 Proxy

    pFad v4 Proxy