From: Paolo Bonzini Subject: Re: [kvm-unit-tests PATCH] Replace -Wextra with a saner list of warning flags Date: Fri, 30 Jun 2017 12:40:19 +0200 Message-ID: References: <1498750826-7902-1-git-send-email-thuth@redhat.com> <03cc1365-c175-53c1-3c92-7ff8b9a29190@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Cc: David Hildenbrand , =?UTF-8?B?UmFkaW0gS3LEjW3DocWZ?= , Laurent Vivier , Drew Jones To: Thomas Huth , kvm@vger.kernel.org Return-path: Received: from mx1.redhat.com ([209.132.183.28]:55792 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751689AbdF3KkZ (ORCPT ); Fri, 30 Jun 2017 06:40:25 -0400 Received: from smtp.corp.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 468F68008D for ; Fri, 30 Jun 2017 10:40:25 +0000 (UTC) In-Reply-To: Content-Language: en-US Sender: kvm-owner@vger.kernel.org List-ID: On 29/06/2017 19:19, Thomas Huth wrote: > >> x86 cannot use "Wmissing-parameter-type -Wold-style-declaration >> -Woverride-init" only because they're not valid in C++. Maybe we should >> split CFLAGS into COMMON_CCFLAGS and CFLAGS proper, so that CXXFLAGS and >> LDFLAGS can be assigned with >> >> CXXFLAGS += $(COMMON_CCFLAGS) >> LDFLAGS += $(COMMON_CCFLAGS) >> >> Then those three could go in CFLAGS, and the others in COMMON_CCFLAGS. > That's of course a good idea. I'll send a v2 ... FWIW, I also removed -Wtype-limits when applying. Checking against symbolic values that turn out to be zero is pretty common. Paolo