Skip to contentSkip to conversation

remove duplicate typedef

PATCH In review Paolo Bonzini 3 participants 4 messages Sep 21, 2011

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 remove duplicate typedef

---
This is failing with some versions of GCC but not others, apparently.

 qemu-common.h |    1 -
 1 files changed, 0 insertions(+), 1 deletions(-)
qemu-common.h +0 -1
index ef9a2bb..404c421 100644
@@ -18,7 +18,6 @@ typedef struct DeviceState DeviceState;
 
 struct Monitor;
 typedef struct Monitor Monitor;
-typedef struct QEMUSGList QEMUSGList;
 
 /* we put basic includes here to avoid repeating them in device drivers */
 #include <stdlib.h>
Signature · 1 line
1.7.6
#1 lore raw

qemu-common.h typedef struct DeviceState DeviceState; · line 21

Quoted 9 lines · Paolo Bonzini
qemu-common.h +0 -1
index ef9a2bb..404c421 100644
@@ -18,7 +18,6 @@ typedef struct DeviceState DeviceState;
 
  struct Monitor;
  typedef struct Monitor Monitor;
-typedef struct QEMUSGList QEMUSGList;

Weird I don't have this in my tree. There's nothing to remove but a quick probe of history also doesn't show it ever being there.

Stefan

#2 lore raw

Am 21.09.2011 12:07, schrieb Stefan Hajnoczi:

Quoted 7 lines · Paolo Bonzini
Quoted 6 lines
qemu-common.h +0 -0
index ef9a2bb..404c421 100644
@@ -18,7 +18,6 @@ typedef struct DeviceState DeviceState;
 
Quoted 6 lines

qemu-common.h typedef struct DeviceState DeviceState; · line 21

Quoted 3 lines
qemu-common.h +0 -1
 struct Monitor;
 typedef struct Monitor Monitor;
-typedef struct QEMUSGList QEMUSGList;

Weird I don't have this in my tree. There's nothing to remove but a quick probe of history also doesn't show it ever being there.

One of Paolo's block patches added it, I dropped it before sending the pull request (and looks like I forgot to send a mail about it). So I guess he's on his development branch and the rebase left a patch with this hunk in place.

Kevin

#3 lore raw
In reply to Stefan Hajnoczi
Quoted 7 lines · Stefan Hajnoczi
Quoted 6 lines · Paolo Bonzini
qemu-common.h +0 -0
index ef9a2bb..404c421 100644
@@ -18,7 +18,6 @@ typedef struct DeviceState DeviceState;
 
Quoted 6 lines

qemu-common.h typedef struct DeviceState DeviceState; · line 21

Quoted 3 lines
qemu-common.h +0 -1
  struct Monitor;
  typedef struct Monitor Monitor;
-typedef struct QEMUSGList QEMUSGList;

Weird I don't have this in my tree. There's nothing to remove but a quick probe of history also doesn't show it ever being there.

Doubly weird. I have it in my development branch, but not in the integration branch from which I sent patches to Kevin. So it didn't reach upstream indeed.

Paolo