X Tutup
Skip to content

cmake: only enable supported compiler warning flags#4148

Merged
pks-t merged 1 commit intolibgit2:masterfrom
pks-t:pks/fix-haiku-builds
Mar 1, 2017
Merged

cmake: only enable supported compiler warning flags#4148
pks-t merged 1 commit intolibgit2:masterfrom
pks-t:pks/fix-haiku-builds

Conversation

@pks-t
Copy link
Member

@pks-t pks-t commented Mar 1, 2017

We currently unconditionally enable the "-Wall" and "-Wextra" flags.
Some platforms rely on compilers which do not support these flags,
though. One of these platforms is Haiku, which does not support
"-Wextra" due to being stuck on GCC version 2.

Fix builds on such platforms by adding these flags only if supported by
the compiler.

This supersedes #4140

We currently unconditionally enable the "-Wall" and "-Wextra" flags.
Some platforms rely on compilers which do not support these flags,
though. One of these platforms is Haiku, which does not support
"-Wextra" due to being stuck on GCC version 2.

Fix builds on such platforms by adding these flags only if supported by
the compiler.
@pks-t pks-t merged commit ba2bc49 into libgit2:master Mar 1, 2017
@pks-t pks-t mentioned this pull request Mar 1, 2017
@pks-t pks-t deleted the pks/fix-haiku-builds branch March 28, 2017 06:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant

X Tutup