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:
Thomas Haller 2020-06-03 23:03:46 +02:00
parent 65b6fc7871
commit c9b36b1370
No known key found for this signature in database
GPG key ID: 29C2366E4DFC5728

View file

@ -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"