mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager
synced 2024-07-21 10:14:41 +00:00
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(); | ^~~
This commit is contained in:
parent
65b6fc7871
commit
c9b36b1370
|
@ -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"
|
||||
|
|
Loading…
Reference in a new issue