diff options
author | Thomas Haller <thaller@redhat.com> | 2020-06-03 23:03:46 +0200 |
---|---|---|
committer | Thomas Haller <thaller@redhat.com> | 2020-06-03 23:08:33 +0200 |
commit | c9b36b13707f657c68000c42c9a80507837d3f4e (patch) | |
tree | b20b72f9491e23ab62d9640e5462ab9f63bfba2e | |
parent | 65b6fc7871c944c80f7e969579045c5a868c04a0 (diff) | |
download | NetworkManager-c9b36b13707f657c68000c42c9a80507837d3f4e.tar.gz |
libnm/crypto: suppress "-Wstrict-prototypes" warning in NSS library
On Debian sid, libnss3-dev (2:3.53-1) causes a compiler warning:
In file included from ../libnm-core/nm-crypto-nss.c:13:
/usr/include/nss/pk11pub.h:951:1: error: function declaration isn't a prototype [-Werror=strict-prototypes]
951 | int SECMOD_GetSystemFIPSEnabled();
| ^~~
-rw-r--r-- | libnm-core/nm-crypto-nss.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libnm-core/nm-crypto-nss.c b/libnm-core/nm-crypto-nss.c index 60c8dfb5cc..5dbbef0058 100644 --- a/libnm-core/nm-crypto-nss.c +++ b/libnm-core/nm-crypto-nss.c @@ -8,6 +8,7 @@ #include "nm-crypto-impl.h" +NM_PRAGMA_WARNING_DISABLE ("-Wstrict-prototypes") #include <prinit.h> #include <nss.h> #include <pk11pub.h> @@ -17,6 +18,7 @@ #include <p12.h> #include <ciferfam.h> #include <p12plcy.h> +NM_PRAGMA_WARNING_REENABLE #include "nm-glib-aux/nm-secret-utils.h" #include "nm-errors.h" |