qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* Re: [Qemu-devel] [PATCH] Fix a compile error when none of the definesis hit
@ 2009-01-21 16:25 laurent
  2009-01-21 17:21 ` Ian Jackson
  0 siblings, 1 reply; 2+ messages in thread
From: laurent @ 2009-01-21 16:25 UTC (permalink / raw)
  To: qemu-devel; +Cc: yu.liu

>Liu Yu wrote:
>> Signed-off-by: Liu Yu <yu.liu@freescale.com>
>>   
>
>What particularly circumstance would this be, --disable-sdl?
>
>> ---
>>  vl.c |    2 ++
>>  1 files changed, 2 insertions(+), 0 deletions(-)
>>
>> diff --git a/vl.c b/vl.c
>> index 63d954b..1bf13c0 100644
>> --- a/vl.c
>> +++ b/vl.c
>> @@ -5548,6 +5548,8 @@ int main(int argc, char **argv, char **envp)
>>                      sdl_display_init(ds, full_screen, no_frame);
>>  #elif defined(CONFIG_COCOA)
>>                      cocoa_display_init(ds, full_screen);
>> +#else
>> +		    ;
>>   
>
>I'd rather see something like do {} while (0); with a comment.

Or something like this ?

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

Laurent

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

end of thread, other threads:[~2009-01-21 17:22 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-01-21 16:25 [Qemu-devel] [PATCH] Fix a compile error when none of the definesis hit laurent
2009-01-21 17:21 ` Ian Jackson

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).