./configure: checking for qsort_r flavour is broken when -Wextra is added to CFLAGS
This happen because AC_CHECK_FUNC code for detecting qsort_r flavour is broken. It does not mark variables as being unused, so gcc issues warning (when -Wextra enabled), and due to -Werror each flavour become unusable.
#1 Updated by Tobias Brunner about 7 years ago
- Tracker changed from Issue to Bug
- Status changed from New to Feedback
- Target version set to 5.3.3
- % Done set to 0
While I compile with
-Wextra myself, I never encountered this problem. The reason for that is, of course, that I also disable several warnings explicitly when compiling strongSwan with it,
-Wno-unused-parameter is one of them (there are lots of other places in the code where that will result in a warning otherwise, and I don't really care for it), so I never noticed this flaw. I now added
-Wno-unused-parameter to the
CFLAGS in the test, which should fix the problem. See the referenced commit.