Skip to content

Turn off -Werror or -Wimplicit-function-declaration by default for C code? #2001

@varungandhi-src

Description

@varungandhi-src

I ran into the OpenSSL build failure recently with -Werror. Out of curiosity, I looked at the issue tracker and it seems like the use of -Werror is a source of repeated build problems. Some examples:

Whenever something like this happens, it ends up wasting time for a bunch of people as evidenced by these threads, and it's not clear (at least, to me) what the benefit of having that error is if someone is going to recommend (the very reasonable) workaround of using -Wno-error=implicit-function-declaration. Would it make sense to change the default, by adding a -Wno-error or -Wno-error=implicit-function-declaration prefix to the appropriate environment variables?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions