]> Savannah Git Hosting - gnulib.git/commitdiff
Fix compilation errors in a testdir created with --with-c++-tests.
authorBruno Haible <bruno@clisp.org>
Sat, 8 Feb 2020 16:39:26 +0000 (17:39 +0100)
committerBruno Haible <bruno@clisp.org>
Sat, 8 Feb 2020 16:39:26 +0000 (17:39 +0100)
* lib/c++defs.h (_GL_CXXALIASWARN1_2): Do not use __typeof__ (func),
since it does not work any more with g++ >= 4.4.

ChangeLog
lib/c++defs.h

index 533dc313e678b55ded4f6c1b1bcc17dc3eeaf328..df48e889ebec6d6d4aa2907fc0b76e13998b078a 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2020-02-08  Bruno Haible  <bruno@clisp.org>
+
+       Fix compilation errors in a testdir created with --with-c++-tests.
+       * lib/c++defs.h (_GL_CXXALIASWARN1_2): Do not use __typeof__ (func),
+       since it does not work any more with g++ >= 4.4.
+
 2020-02-08  Bruno Haible  <bruno@clisp.org>
 
        doc: Update for glibc 2.31.
index 5d5da71cec33290a29c1648a42db45664b9baaeb..402cae4bd5ab50408e6aa68445c8e4572c266ced 100644 (file)
     _GL_WARN_ON_USE_CXX (func, rettype, parameters_and_attributes, \
                          "The symbol ::" #func " refers to the system function. " \
                          "Use " #namespace "::" #func " instead.")
-# elif __GNUC__ >= 3 && GNULIB_STRICT_CHECKING
-#  define _GL_CXXALIASWARN1_2(func,rettype,parameters_and_attributes,namespace) \
-     extern __typeof__ (func) func
 # else
 #  define _GL_CXXALIASWARN1_2(func,rettype,parameters_and_attributes,namespace) \
      _GL_EXTERN_C int _gl_cxxalias_dummy