Changeset
src/conf/domain_conf.h | 3 ---
1 file changed, 3 deletions(-)
Git apply log
Switched to a new branch '20180612091320.28645-1-berrange@redhat.com'
Applying: conf: remove duplicated typedefs for virDomainSevDef
Using index info to reconstruct a base tree...
M	src/conf/domain_conf.h
Falling back to patching base and 3-way merge...
No changes -- Patch already applied.
To https://github.com/patchew-project/libvirt
 * [new tag]         patchew/20180612091320.28645-1-berrange@redhat.com -> patchew/20180612091320.28645-1-berrange@redhat.com
Test passed: syntax-check

loading

[libvirt] [PATCH] conf: remove duplicated typedefs for virDomainSevDef
Posted by Daniel P. Berrangé, 1 week ago
The typedefs were present twice in the header file which causes failures
with some compilers, eg FreeBSD 10 CLang:

../../src/conf/domain_conf.h:2330:33: error: redefinition of typedef 'virDomainSevDef' is a C11 feature
+[-Werror,-Wtypedef-redefinition]
typedef struct _virDomainSevDef virDomainSevDef;
                                ^
../../src/conf/domain_conf.h:145:33: note: previous definition is here
typedef struct _virDomainSevDef virDomainSevDef;
                                ^

Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
---

Pushed as a build fix

 src/conf/domain_conf.h | 3 ---
 1 file changed, 3 deletions(-)

diff --git a/src/conf/domain_conf.h b/src/conf/domain_conf.h
index fe7a6bb21b..ea8ddb2b39 100644
--- a/src/conf/domain_conf.h
+++ b/src/conf/domain_conf.h
@@ -142,9 +142,6 @@ typedef virDomainPanicDef *virDomainPanicDefPtr;
 typedef struct _virDomainMemoryDef virDomainMemoryDef;
 typedef virDomainMemoryDef *virDomainMemoryDefPtr;
 
-typedef struct _virDomainSevDef virDomainSevDef;
-typedef virDomainSevDef *virDomainSevDefPtr;
-
 /* forward declarations virDomainChrSourceDef, required by
  * virDomainNetDef
  */
-- 
2.17.0

--
libvir-list mailing list
libvir-list@redhat.com
https://www.redhat.com/mailman/listinfo/libvir-list