Skip to content

Turn on -Werror flag for unit tests #5650

@maddeleine

Description

@maddeleine

Security issue notifications

If you discover a potential security issue in s2n we ask that you notify
AWS Security via our vulnerability reporting page. Please do not create a public github issue.

Problem:

We have -Werror turned on by default for our build of the s2n-tls library, but it is not turned on when we build our unit tests. This is bad hygiene and it seems we've developed multiple compiler warnings in our unit tests because of it.

Need By Date:

N/A

Solution:

Add the -Werror flag to our Cmake file where we build the unit tests. Also fix all the compiler warnings that show up. Maybe use UNSAFE_TREAT_WARNINGS_AS_ERRORS flag since we have it.

Requirements / Acceptance Criteria:

-Werror is added to our unit test build.

Out of scope:

Is there anything the solution will intentionally NOT address?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions