Skip to content

Conversation

albertnetymk
Copy link

Fix #162

include(CheckFunctionExists)

set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wall -Wextra")
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -std=gnu11 -Wall -Wextra")
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why is gnu11 necessary? I would prefer the library to work even with old compilers.

@albertnetymk
Copy link
Author

It's for for (int i = 0.... For two compilers listed in travis config file, gcc-4.8 defaults to sth below c99, even though it supports c11 and gnu11.

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.

2 participants