diff options
author | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2020-10-09 16:48:03 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2020-10-12 15:51:39 +0200 |
commit | 4b6f74f5a0943e0abfa8e6997811f8f7b7f00a15 (patch) | |
tree | c0d7486eb957a2e22137e7794b83568152a38947 /src/basic/macro.h | |
parent | update TODO (diff) | |
download | systemd-4b6f74f5a0943e0abfa8e6997811f8f7b7f00a15.tar.xz systemd-4b6f74f5a0943e0abfa8e6997811f8f7b7f00a15.zip |
basic/selinux: work around mallinfo deprecation
Latest glibc has deprecated mallinfo(), so it might become unavailable at some point
in the future. There is malloc_info(), but it returns XML, ffs. I think the information
that we get from mallinfo() is quite useful, so let's use mallinfo() if available, and
not otherwise.
Diffstat (limited to 'src/basic/macro.h')
-rw-r--r-- | src/basic/macro.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/basic/macro.h b/src/basic/macro.h index 41c2c3289e..d3a5348901 100644 --- a/src/basic/macro.h +++ b/src/basic/macro.h @@ -93,6 +93,10 @@ #endif /* Temporarily disable some warnings */ +#define DISABLE_WARNING_DEPRECATED_DECLARATIONS \ + _Pragma("GCC diagnostic push"); \ + _Pragma("GCC diagnostic ignored \"-Wdeprecated-declarations\"") + #define DISABLE_WARNING_FORMAT_NONLITERAL \ _Pragma("GCC diagnostic push"); \ _Pragma("GCC diagnostic ignored \"-Wformat-nonliteral\"") |