From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:46467) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1avt9o-0006Ep-Fk for qemu-devel@nongnu.org; Thu, 28 Apr 2016 17:07:33 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1avt9k-00083D-BP for qemu-devel@nongnu.org; Thu, 28 Apr 2016 17:07:32 -0400 Received: from [2a03:4000:1::4e2f:c7ac:d] (port=50217 helo=mail.weilnetz.de) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1avt9k-00082y-5B for qemu-devel@nongnu.org; Thu, 28 Apr 2016 17:07:28 -0400 Received: from localhost (v220110690675601.yourvserver.net.local [127.0.0.1]) by mail.weilnetz.de (Postfix) with ESMTP id B9A6A11810AF for ; Thu, 28 Apr 2016 23:07:25 +0200 (CEST) Received: from mail.weilnetz.de ([127.0.0.1]) by localhost (v220110690675601.yourvserver.net [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id MnJYr1GHTVRU for ; Thu, 28 Apr 2016 23:07:23 +0200 (CEST) Received: from edv32.bib.uni-mannheim.de (p54AC8681.dip0.t-ipconnect.de [84.172.134.129]) by mail.weilnetz.de (Postfix) with ESMTPSA id D3B681181097 for ; Thu, 28 Apr 2016 23:07:23 +0200 (CEST) References: <572273A7.60908@weilnetz.de> From: Stefan Weil Message-ID: <57227B8B.2060103@weilnetz.de> Date: Thu, 28 Apr 2016 23:07:23 +0200 MIME-Version: 1.0 In-Reply-To: <572273A7.60908@weilnetz.de> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [BUG 2.6] Compiler warnings (clang) in 2.6 (was: Broken CONFIG_TPM?) List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Am 28.04.2016 um 22:33 schrieb Stefan Weil: > A compilation test with clang -Weverything reported this problem: > > config-host.h:112:20: warning: '$' in identifier > [-Wdollar-in-identifier-extension] > > The line of code looks like this: > > #define CONFIG_TPM $(CONFIG_SOFTMMU) > > This is fine for Makefile code, but won't work as expected in C code. > A complete 64 bit build with clang -Weverything creates a log file of 1.7 GB. Here are the uniq warnings sorted by their frequency: 1 -Wflexible-array-extensions 1 -Wgnu-folding-constant 1 -Wunknown-pragmas 1 -Wunknown-warning-option 1 -Wunreachable-code-loop-increment 2 -Warray-bounds-pointer-arithmetic 2 -Wdollar-in-identifier-extension 3 -Woverlength-strings 3 -Wweak-vtables 4 -Wgnu-empty-struct 4 -Wstring-conversion 6 -Wclass-varargs 7 -Wc99-extensions 7 -Wc++-compat 8 -Wfloat-equal 11 -Wformat-nonliteral 16 -Wshift-negative-value 19 -Wglobal-constructors 28 -Wc++11-long-long 29 -Wembedded-directive 38 -Wvla 40 -Wcovered-switch-default 40 -Wmissing-variable-declarations 49 -Wold-style-cast 53 -Wgnu-conditional-omitted-operand 56 -Wformat-pedantic 61 -Wvariadic-macros 77 -Wc++11-extensions 83 -Wgnu-flexible-array-initializer 83 -Wzero-length-array 96 -Wgnu-designator 102 -Wmissing-noreturn 103 -Wconditional-uninitialized 107 -Wdisabled-macro-expansion 115 -Wunreachable-code-return 134 -Wunreachable-code 243 -Wunreachable-code-break 257 -Wfloat-conversion 280 -Wswitch-enum 291 -Wpointer-arith 298 -Wshadow 378 -Wassign-enum 395 -Wused-but-marked-unused 420 -Wreserved-id-macro 493 -Wdocumentation 510 -Wshift-sign-overflow 565 -Wgnu-case-range 566 -Wgnu-zero-variadic-macro-arguments 650 -Wbad-function-cast 705 -Wmissing-field-initializers 817 -Wgnu-statement-expression 968 -Wdocumentation-unknown-command 1021 -Wextra-semi 1112 -Wgnu-empty-initializer 1138 -Wcast-qual 1509 -Wcast-align 1766 -Wextended-offsetof 1937 -Wsign-compare 2130 -Wpacked 2404 -Wunused-macros 3081 -Wpadded 4182 -Wconversion 5430 -Wlanguage-extension-token 6655 -Wshorten-64-to-32 6995 -Wpedantic 7354 -Wunused-parameter 27659 -Wsign-conversion