From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:35238) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SEeqI-0003sK-DG for qemu-devel@nongnu.org; Mon, 02 Apr 2012 06:50:38 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SEeqB-0003ia-DJ for qemu-devel@nongnu.org; Mon, 02 Apr 2012 06:50:33 -0400 Received: from mx1.redhat.com ([209.132.183.28]:15957) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SEeqB-0003iH-5X for qemu-devel@nongnu.org; Mon, 02 Apr 2012 06:50:27 -0400 Received: from int-mx11.intmail.prod.int.phx2.redhat.com (int-mx11.intmail.prod.int.phx2.redhat.com [10.5.11.24]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id q32AoOEG014017 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Mon, 2 Apr 2012 06:50:24 -0400 Received: from lettuce.camlab.fab.redhat.com (lettuce.camlab.fab.redhat.com [10.33.15.20]) by int-mx11.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id q32AoNx6013508 for ; Mon, 2 Apr 2012 06:50:23 -0400 From: "Daniel P. Berrange" Date: Mon, 2 Apr 2012 11:50:07 +0100 Message-Id: <1333363816-1691-1-git-send-email-berrange@redhat.com> Subject: [Qemu-devel] Fix enablement of some compiler warning flags & add some more List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org I discovered that -Wformat-security was never enabled in QEMU builds, despite being listed in configure. This is because the code for checking support of compile flags was wrong. While fixing this, I decided to see how many more GCC compiler warning flags could usefully be enabled. The result is this patch series which fixes several code bugs. The last patch is a few I could not enable due to the huge number of current violations. It would be desirable to enable at least some of these, -Wjump-misses-init in paticular.