Skip to content

CheckSymbolExists: Work around GCC failure with -pedantic-errors option

GCC mistakenly issues the pedantic warning "ISO C forbids conversion of function pointer to object pointer type". With -pedantic-errors in the compile flags, that diagnostic prevents check_symbol_exists() from detecting function symbols.

The solution is to filter out -pedantic-errors (and -Werror, just to be future proof) before invoking try_compile().

Fixes: #13208 (closed)

Edited by Timo Röhling

Merge request reports