]> git.proxmox.com Git - qemu.git/commitdiff
libcacard: Fix compilation with gcc-4.7
authorHans de Goede <hdegoede@redhat.com>
Fri, 2 Mar 2012 15:49:44 +0000 (16:49 +0100)
committerAnthony Liguori <aliguori@us.ibm.com>
Fri, 9 Mar 2012 13:02:50 +0000 (07:02 -0600)
VCARD_ATR_PREFIX is used as part of an array initializer so it should
not have () around it, so far this happened to work, but gcc-4.7 does
not like it.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
libcacard/vcardt.h

index d4d8e2ed182af142bad48daa172eb23d86bd0d0d..d3e952277419d01b49951dad6afcab09fe711df1 100644 (file)
@@ -26,8 +26,8 @@ typedef struct VCardEmulStruct VCardEmul;
 #define MAX_CHANNEL 4
 
 /* create an ATR with appropriate historical bytes */
-#define VCARD_ATR_PREFIX(size) (0x3b, 0x68+(size), 0x00, 0xff, \
-                               'V', 'C', 'A', 'R', 'D', '_')
+#define VCARD_ATR_PREFIX(size) 0x3b, 0x68+(size), 0x00, 0xff, \
+                               'V', 'C', 'A', 'R', 'D', '_'
 
 
 typedef enum {