qemu-devel
[Top][All Lists]
Advanced

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

Re: [Qemu-devel] [PATCH] Fix a compile error when none of the definesis


From: Ian Jackson
Subject: Re: [Qemu-devel] [PATCH] Fix a compile error when none of the definesis hit
Date: Wed, 21 Jan 2009 17:21:52 +0000

address@hidden writes ("Re: [Qemu-devel] [PATCH] Fix a compile error when none 
of the definesis hit"):
> [Anthony:]
> >I'd rather see something like do {} while (0); with a comment.

This is all rather mystifying to me.  What's wrong with just adding
braces ?

-               if (sdl || !vnc_display)
+               if (sdl || !vnc_display) {
  #if defined(CONFIG_SDL)
                    sdl_display_init(ds, full_screen, no_frame);
  #elif defined(CONFIG_COCOA)
                    cocoa_display_init(ds, full_screen);
  #endif
+               }

Ian.




reply via email to

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