mirror of
https://github.com/VectorCamp/vectorscan.git
synced 2025-06-28 16:41:01 +03:00
Don't ignore unused attrib warnings in test
This commit is contained in:
parent
1ed2bdc46f
commit
5754709dd5
@ -1,3 +1,13 @@
|
|||||||
# tests for compiler properties
|
# tests for compiler properties
|
||||||
|
|
||||||
CHECK_C_SOURCE_COMPILES("int foo(int) __attribute__ ((ifunc(\"foo_i\"))); int f1(int i) { return i; } void (*foo_i()) { return f1; } int main(void) { return 0; }" HAS_C_ATTR_IFUNC)
|
# set -Werror so we can't ignore unused attribute warnings
|
||||||
|
set (CMAKE_REQUIRED_FLAGS "-Werror")
|
||||||
|
|
||||||
|
CHECK_C_SOURCE_COMPILES("
|
||||||
|
int foo(int) __attribute__ ((ifunc(\"foo_i\")));
|
||||||
|
int f1(int i) { return i; }
|
||||||
|
void (*foo_i()) { return f1; }
|
||||||
|
int main(void) { return 0; }
|
||||||
|
" HAS_C_ATTR_IFUNC)
|
||||||
|
|
||||||
|
unset(CMAKE_REQUIRED_FLAGS)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user