Fix a compile error when none of the defines is hit
PATCH 1/1 Fix a compile error when none of the defines is hit
Signed-off-by Liu Yu <[email protected]>
--- vl.c | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-)
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 + ;#endif } }
Signature · 1 line
1.5.4
Quoted 1 line · Liu Yu
Signed-off-by Liu Yu <[email protected]>
Quoted 17 lines
--- vl.c | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-)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 + ;#endif } }
Quoted 2 lines · Liu Yu
Signed-off-by Liu Yu <[email protected]>
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
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 }}