]> www.infradead.org Git - users/sagi/libnvme.git/commitdiff
Python: Suppress swig warnings about unnamed struct
authorMartin Belanger <martin.belanger@dell.com>
Tue, 25 Apr 2023 10:59:43 +0000 (06:59 -0400)
committerDaniel Wagner <wagi@monom.org>
Thu, 27 Apr 2023 13:02:39 +0000 (15:02 +0200)
Ref: https://github.com/linux-nvme/libnvme/issues/634

Signed-off-by: Martin Belanger <martin.belanger@dell.com>
libnvme/nvme.i

index d32fba5a896f8ffcfeefe4c359428aa28e289587..9f97a4dcbd28adb52230fa354dff79abfa1f0308 100644 (file)
@@ -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