qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-devel] hw/ssi/xilinx_spips.c:52:1: warning: "CS" redefined


From: Michael Tokarev
Subject: [Qemu-devel] hw/ssi/xilinx_spips.c:52:1: warning: "CS" redefined
Date: Fri, 14 Jun 2013 11:11:33 +0400
User-agent: Mozilla/5.0 (X11; Linux i686 on x86_64; rv:17.0) Gecko/17.0 Icedove/17.0

This warning is produced when compiling qemu on solaris
(openindiana).

 /usr/include/sys/regset.h:98:1: warning: this is the location
    of the previous definition

 (I don't know how regset.h is included)

The code reads:

...
#define MANUAL_CS           (1 << 14)
#define CS                  (0xF << 10)
#define CS_SHIFT            (10)
...


And other than the #define, this constant is never used.
There are a few usages of CS_SHIFT (shouldn't it be used
when defining CS too?) and MANUAL_CS.  A few other
constants defined in there, like, for example, IFMODE,
are not used too.

Can we get rid of this so-likely-to-clash-with-something
definition?

Thanks,

/mjt



reply via email to

[Prev in Thread] Current Thread [Next in Thread]