From 29a37561c1639514d79a33aedaddf27edd8d2a4c Mon Sep 17 00:00:00 2001 From: Martin Belanger Date: Tue, 25 Apr 2023 06:59:43 -0400 Subject: [PATCH] Python: Suppress swig warnings about unnamed struct Ref: https://github.com/linux-nvme/libnvme/issues/634 Signed-off-by: Martin Belanger --- libnvme/nvme.i | 1 + 1 file changed, 1 insertion(+) diff --git a/libnvme/nvme.i b/libnvme/nvme.i index d32fba5a..9f97a4dc 100644 --- a/libnvme/nvme.i +++ b/libnvme/nvme.i @@ -1052,6 +1052,7 @@ struct nvme_ns { PyObject *nbft_get(const char * filename); // We want to swig all the #define and enum from types.h, but none of the structs. +#pragma SWIG nowarn=503 // Supress warnings about unnamed struct #define __attribute__(x) %rename($ignore, %$isclass) ""; // ignore all classes/structs %rename($ignore, %$isfunction) ""; // ignore all functions -- 2.49.0