[libvirt] [PATCH] Workaround apibuild.py warnings

Matthias Bolte matthias.bolte at googlemail.com
Sun May 29 15:14:46 UTC 2011


Parsing ./../include/libvirt/libvirt.h
Misformatted macro comment for _virSchedParameter
  Expecting '* _virSchedParameter:' got '* virSchedParameter:'
Misformatted macro comment for _virBlkioParameter
  Expecting '* _virBlkioParameter:' got '* virBlkioParameter:'
Misformatted macro comment for _virMemoryParameter
  Expecting '* _virMemoryParameter:' got '* virMemoryParameter:'

Replace '#define' with '# define' for the backward compatibility
defines to keep apibuild.py from parsing them and expecting
documentation comments for them.
---
 include/libvirt/libvirt.h.in |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/include/libvirt/libvirt.h.in b/include/libvirt/libvirt.h.in
index 8058229..424e49b 100644
--- a/include/libvirt/libvirt.h.in
+++ b/include/libvirt/libvirt.h.in
@@ -2569,7 +2569,7 @@ typedef enum {
  * Provided for backwards compatibility; virTypedParameter is the
  * preferred alias since 0.9.2.
  */
-#define _virSchedParameter _virTypedParameter
+# define _virSchedParameter _virTypedParameter
 typedef struct _virTypedParameter virSchedParameter;
 
 /**
@@ -2613,7 +2613,7 @@ typedef enum {
  * Provided for backwards compatibility; virTypedParameter is the
  * preferred alias since 0.9.2.
  */
-#define _virBlkioParameter _virTypedParameter
+# define _virBlkioParameter _virTypedParameter
 typedef struct _virTypedParameter virBlkioParameter;
 
 /**
@@ -2657,7 +2657,7 @@ typedef enum {
  * Provided for backwards compatibility; virTypedParameter is the
  * preferred alias since 0.9.2.
  */
-#define _virMemoryParameter _virTypedParameter
+# define _virMemoryParameter _virTypedParameter
 typedef struct _virTypedParameter virMemoryParameter;
 
 /**
-- 
1.7.0.4




More information about the libvir-list mailing list