Skip to contentSkip to conversation

Fix a compile error when none of the defines is hit

PATCH In review Liu Yu 3 participants 3 messages Jan 21, 2009

lore
Share & tools
lore

Liu Yu

author
#0 lore raw

PATCH 1/1 Fix a compile error when none of the defines is hit

---
 vl.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
vl.c +2 -0
index 63d954b..1bf13c0 100644
@@ -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
+		    ;
 #endif
             }
     }
Signature · 1 line
1.5.4
Acked-by on v1 1/1
#1 lore raw
Quoted 1 line · Liu Yu
Quoted 17 lines
---
 vl.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
vl.c +2 -0
index 63d954b..1bf13c0 100644
@@ -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
+		    ;
 #endif
             }
     }
#2 lore raw
In reply to Liu Yu
Quoted 2 lines · Liu Yu

What particularly circumstance would this be, --disable-sdl?

Quoted 9 lines
---
 vl.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
vl.c +0 -0
index 63d954b..1bf13c0 100644

vl.c int main(int argc, char **argv, char **envp) · line 5553

Quoted 6 lines
vl.c +2 -0
@@ -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.

Regards,

Anthony Liguori

Quoted 4 lines
vl.c +0 -0
 #endif
             }
     }