Received: from eggs.gnu.org ([2001:4830:134:3::10]:36498) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UmNVl-0007vK-4e for qemu-devel@nongnu.org; Tue, 11 Jun 2013 08:17:21 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UmNVg-0007Gu-Gh for qemu-devel@nongnu.org; Tue, 11 Jun 2013 08:17:17 -0400 Message-ID: <51B71545.3030508@msgid.tls.msk.ru> Date: Tue, 11 Jun 2013 16:17:09 +0400 From: Michael Tokarev MIME-Version: 1.0 References: <6740398.i518s4jboP@al> In-Reply-To: <6740398.i518s4jboP@al> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [Qemu-trivial] [PATCH] Unbreak -no-quit for GTK, validate SDL options List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Peter Wu Cc: qemu-trivial@nongnu.org, Anthony Liguori , qemu-devel@nongnu.org 11.06.2013 12:55, Peter Wu wrote: > Certain options (-no-frame, -alt-grab, -ctrl-grab) only make sense with SDL. > When compiling without SDL, these options (and -no-quit) print an error message > and exit qemu. > > In case QEMU is compiled with SDL support, the three aforementioned options > still do not make sense with other display types. This patch addresses that > issue by printing a warning. I have chosen not to exit QEMU afterwards because > having the option is not harmful and before this patch it would be ignored > anyway. > > By delaying the sanity check from compile-time with some ifdefs to run-time, > -no-quit is now also properly supported when compiling without SDL. Thanks, this is also something I wanted to do for a long time, -- to know when some options makes no sense (or not implemented) instead of wondering what I did wrong and why it does not work as expected... ;) Applied to the trivial patches queue. /mjt