Feature #914 » 0033-gnulib-common.m4-Update-to-serial-105.patch
| dependencies/m4/gnulib-common.m4 | ||
|---|---|---|
| # gnulib-common.m4 | ||
| # serial 103 | ||
| # serial 105 | ||
| dnl Copyright (C) 2007-2024 Free Software Foundation, Inc. | ||
| dnl This file is free software; the Free Software Foundation | ||
| dnl gives unlimited permission to copy and/or distribute it, | ||
| ... | ... | |
| #  define _GL_UNUSED_LABEL | ||
| # endif | ||
| #endif | ||
| /* The following attributes enable detection of multithread-safety problems | ||
|    and resource leaks at compile-time, by clang ≥ 15, when the warning option | ||
|    -Wthread-safety is enabled.  For usage, see | ||
|    <https://clang.llvm.org/docs/ThreadSafetyAnalysis.html>.  */ | ||
| #ifndef _GL_ATTRIBUTE_CAPABILITY_TYPE | ||
| # if __clang_major__ >= 15 | ||
| #  define _GL_ATTRIBUTE_CAPABILITY_TYPE(concept) \ | ||
|      __attribute__ ((__capability__ (concept))) | ||
| #else | ||
| #  define _GL_ATTRIBUTE_CAPABILITY_TYPE(concept) | ||
| # endif | ||
| #endif | ||
| #ifndef _GL_ATTRIBUTE_ACQUIRE_CAPABILITY | ||
| # if __clang_major__ >= 15 | ||
| #  define _GL_ATTRIBUTE_ACQUIRE_CAPABILITY(resource) \ | ||
|      __attribute__ ((__acquire_capability__ (resource))) | ||
| # else | ||
| #  define _GL_ATTRIBUTE_ACQUIRE_CAPABILITY(resource) | ||
| # endif | ||
| #endif | ||
| #ifndef _GL_ATTRIBUTE_RELEASE_CAPABILITY | ||
| # if __clang_major__ >= 15 | ||
| #  define _GL_ATTRIBUTE_RELEASE_CAPABILITY(resource) \ | ||
|      __attribute__ ((__release_capability__ (resource))) | ||
| # else | ||
| #  define _GL_ATTRIBUTE_RELEASE_CAPABILITY(resource) | ||
| # endif | ||
| #endif | ||
| ]) | ||
|   AH_VERBATIM([c_linkage], | ||
| [/* In C++, there is the concept of "language linkage", that encompasses | ||
| ... | ... | |
|     dnl -Wno-type-limits                      >= 4.3          >= 3.9 | ||
|     dnl -Wno-undef                            >= 3            >= 3.9 | ||
|     dnl -Wno-unsuffixed-float-constants       >= 4.5 | ||
|     dnl -Wno-unused-const-variable            >= 4.4          >= 3.9 | ||
|     dnl -Wno-unused-function                  >= 3            >= 3.9 | ||
|     dnl -Wno-unused-parameter                 >= 3            >= 3.9 | ||
|     dnl | ||
| ... | ... | |
|       -Wno-sign-conversion | ||
|       -Wno-type-limits | ||
|       #endif | ||
|       #if (__GNUC__ + (__GNUC_MINOR__ >= 4) > 4 && !defined __clang__) || (__clang_major__ + (__clang_minor__ >= 9) > 3) | ||
|       -Wno-unused-const-variable | ||
|       #endif | ||
|       #if (__GNUC__ + (__GNUC_MINOR__ >= 5) > 4 && !defined __clang__) | ||
|       -Wno-unsuffixed-float-constants | ||
|       #endif | ||