The no_frame var is only defined when SDL support is enabled. Signed-off-by: Mike Frysinger <vap...@gentoo.org> --- vl.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-)
diff --git a/vl.c b/vl.c index 9f8fd6e..aaa14bb 100644 --- a/vl.c +++ b/vl.c @@ -3524,9 +3524,6 @@ int main(int argc, char **argv, char **envp) case QEMU_OPTION_full_screen: full_screen = 1; break; - case QEMU_OPTION_no_frame: - no_frame = 1; - break; case QEMU_OPTION_alt_grab: alt_grab = 1; break; @@ -3537,10 +3534,14 @@ int main(int argc, char **argv, char **envp) no_quit = 1; break; #ifdef CONFIG_SDL + case QEMU_OPTION_no_frame: + no_frame = 1; + break; case QEMU_OPTION_sdl: display_type = DT_SDL; break; #else + case QEMU_OPTION_no_frame: case QEMU_OPTION_sdl: fprintf(stderr, "SDL support is disabled\n"); exit(1); @@ -4081,10 +4082,12 @@ int main(int argc, char **argv, char **envp) #endif } +#ifdef CONFIG_SDL if ((no_frame || alt_grab || ctrl_grab) && display_type != DT_SDL) { fprintf(stderr, "-no-frame, -alt-grab and -ctrl-grab are only valid " "for SDL, ignoring option\n"); } +#endif if (no_quit && (display_type != DT_GTK && display_type != DT_SDL)) { fprintf(stderr, "-no-quit is only valid for GTK and SDL, " "ignoring option\n"); -- 1.8.2.1