fix compilation problems with gcc below version 11 default tip

Sun, 02 Mar 2025 18:30:38 +0100

author
Mike Becker <universe@uap-core.de>
date
Sun, 02 Mar 2025 18:30:38 +0100
changeset 1235
3e058f5ba5dc
parent 1234
6cdf81367b93

fix compilation problems with gcc below version 11

src/cx/common.h file | annotate | diff | comparison | revisions
--- a/src/cx/common.h	Sun Mar 02 16:45:46 2025 +0100
+++ b/src/cx/common.h	Sun Mar 02 18:30:38 2025 +0100
@@ -150,7 +150,7 @@
  */
 #define cx_attr_malloc __attribute__((__malloc__))
 
-#ifndef __clang__
+#if !defined(__clang__) && __GNUC__ >= 11
 /**
  * The pointer returned by the attributed function is supposed to be freed
  * by @p freefunc.

mercurial