qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH for-2.1 0/2] drop INLINE macro from the tree
@ 2014-06-19 14:36 Luiz Capitulino
  2014-06-19 14:36 ` [Qemu-devel] [PATCH 1/2] fpu: softfloat: drop INLINE macro Luiz Capitulino
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: Luiz Capitulino @ 2014-06-19 14:36 UTC (permalink / raw)
  To: qemu-devel; +Cc: peter.maydell

This series fixes the following build breakage:

"""
In file included from /usr/include/spice-server/spice.h:25:0,
                 from /home/lcapitulino/work/src/upstream/qemu/include/ui/qemu-spice.h:25,
                 from /home/lcapitulino/work/src/upstream/qemu/qemu-char.c:84:
/usr/include/spice-1/spice/macros.h:105:0: error: "INLINE" redefined [-Werror]
 #define INLINE inline
 ^
In file included from /home/lcapitulino/work/src/upstream/qemu/include/qemu/bswap.h:8:0,
                 from /home/lcapitulino/work/src/upstream/qemu/include/qemu-common.h:112,
                 from /home/lcapitulino/work/src/upstream/qemu/qemu-char.c:24:
/home/lcapitulino/work/src/upstream/qemu/include/fpu/softfloat.h:66:0: note: this is the location of the previous definition
 #define INLINE static inline
 ^
cc1: all warnings being treated as errors
make: *** [qemu-char.o] Error 1
"""

Yes, yes, I know. Libspice is to blame. But if this happened to libspice it
can happen with other external libs too. Besides, renaming keywords doesn't
look like a good practice to me. Let's just do it.

Luiz Capitulino (2):
  fpu: softfloat: drop INLINE macro
  audio: fmopl: drop INLINE macro

 fpu/softfloat-macros.h  | 38 +++++++++----------
 fpu/softfloat.c         | 48 ++++++++++++------------
 hw/audio/fmopl.c        | 31 ++++++++--------
 include/fpu/softfloat.h | 99 ++++++++++++++++++++++++-------------------------
 4 files changed, 107 insertions(+), 109 deletions(-)

-- 
1.9.3

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2014-06-19 15:07 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-06-19 14:36 [Qemu-devel] [PATCH for-2.1 0/2] drop INLINE macro from the tree Luiz Capitulino
2014-06-19 14:36 ` [Qemu-devel] [PATCH 1/2] fpu: softfloat: drop INLINE macro Luiz Capitulino
2014-06-19 14:59   ` Peter Maydell
2014-06-19 15:07     ` Luiz Capitulino
2014-06-19 14:36 ` [Qemu-devel] [PATCH 2/2] audio: fmopl: " Luiz Capitulino
2014-06-19 15:02 ` [Qemu-devel] [PATCH for-2.1 0/2] drop INLINE macro from the tree Peter Maydell

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).