Skip to content

configure: only add -Wunused-result if supported by the compiler#32

Closed
tpetazzoni wants to merge 1 commit into
obgm:developfrom
tpetazzoni:wunused-result-check
Closed

configure: only add -Wunused-result if supported by the compiler#32
tpetazzoni wants to merge 1 commit into
obgm:developfrom
tpetazzoni:wunused-result-check

Conversation

@tpetazzoni
Copy link
Copy Markdown
Contributor

Old gcc versions such as 4.3.x do not support -Wunused-result, so
instead of unconditionally using this warning, only use it if supported
by the compiler.

Signed-off-by: Thomas Petazzoni thomas.petazzoni@free-electrons.com

Old gcc versions such as 4.3.x do not support -Wunused-result, so
instead of unconditionally using this warning, only use it if supported
by the compiler.

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
@tijuca
Copy link
Copy Markdown
Contributor

tijuca commented Jun 18, 2016

Hi Thomas,

I'm fine with this PR, thanks for tuning this part. The above CI error isn't related to this change as it's clearly to see that clang and GCC is making the check successfully and the issue is related to Contiki code.

checking whether C compiler accepts -fdiagnostics-color... yes
checking whether C compiler accepts -Wunused-result... yes   <-----
checking whether the linker accepts -Wl,--version-script=./libcoap-1.map... yes

@obgm
Copy link
Copy Markdown
Owner

obgm commented Jun 21, 2016

Thanks @tpetazzoni and @tijuca -- I have pulled this PR into develop.

@obgm obgm closed this Jun 21, 2016
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.

3 participants