From 2d1336dcf3d620f115aec771ddfb86b199a71e21 Mon Sep 17 00:00:00 2001 From: Uli Schlachter Date: Sat, 14 Feb 2015 19:45:01 +0100 Subject: [PATCH] configure: Fix C++11 test with -Werror=missing-declarations This fixes the following error (copied from config.log): conftest.cpp:49:14: error: no previous declaration for 'void test_template_alias_sfinae::test()' [-Werror=missing-declarations] Signed-off-by: Uli Schlachter --- m4/ax_cxx_compile_stdcxx_11.m4 | 2 ++ 1 file changed, 2 insertions(+) diff --git a/m4/ax_cxx_compile_stdcxx_11.m4 b/m4/ax_cxx_compile_stdcxx_11.m4 index 7ad01e03..20c8b120 100644 --- a/m4/ax_cxx_compile_stdcxx_11.m4 +++ b/m4/ax_cxx_compile_stdcxx_11.m4 @@ -76,6 +76,8 @@ m4_define([_AX_CXX_COMPILE_STDCXX_11_testbody], [[ template void func(member*) {} + void test(); + void test() { func(0); }