From debbugs-submit-bounces@debbugs.gnu.org Thu Oct 19 18:48:33 2017 Received: (at submit) by debbugs.gnu.org; 19 Oct 2017 22:48:33 +0000 Received: from localhost ([127.0.0.1]:50818 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1e5Jc9-0002fl-EY for submit@debbugs.gnu.org; Thu, 19 Oct 2017 18:48:33 -0400 Received: from eggs.gnu.org ([208.118.235.92]:49528) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1e5Jc8-0002fY-8E for submit@debbugs.gnu.org; Thu, 19 Oct 2017 18:48:32 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1e5Jc2-0006q6-5p for submit@debbugs.gnu.org; Thu, 19 Oct 2017 18:48:27 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,RP_MATCHES_RCVD autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:42511) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1e5Jc2-0006pz-21 for submit@debbugs.gnu.org; Thu, 19 Oct 2017 18:48:26 -0400 Received: from rgm by fencepost.gnu.org with local (Exim 4.82) (envelope-from ) id 1e5Jc0-0003Yc-0p; Thu, 19 Oct 2017 18:48:24 -0400 From: Glenn Morris To: submit@debbugs.gnu.org Subject: flymake test different-diagnostic-types fails X-Debbugs-cc: joaotavora@gmail.com X-Spook: Croatian Shooting digicash Suicide bomber Human to Human X-Ran: IFnp User-Agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/) MIME-Version: 1.0 Content-Type: text/plain X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.0 (-----) Package: emacs Version: 26.0.90 Between 0fff900c18c3ae497294f26fd42b70990638d3ed and 0b558b4acb8326c6f26fcde47ca85777716ae831 on emacs-26 (RHEL7 with gcc 4.8.5), the flymake test "different-diagnostic-types" began failing with: (should (eq 'flymake-note (face-at-point))) -> (eq flymake-note flymake-warning) Ref also eg https://hydra.nixos.org/build/62738472 From debbugs-submit-bounces@debbugs.gnu.org Thu Oct 19 19:26:39 2017 Received: (at 28906) by debbugs.gnu.org; 19 Oct 2017 23:26:39 +0000 Received: from localhost ([127.0.0.1]:50839 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1e5KD0-0003eI-Py for submit@debbugs.gnu.org; Thu, 19 Oct 2017 19:26:38 -0400 Received: from mail-wr0-f180.google.com ([209.85.128.180]:54652) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1e5KCz-0003e4-CZ for 28906@debbugs.gnu.org; Thu, 19 Oct 2017 19:26:37 -0400 Received: by mail-wr0-f180.google.com with SMTP id o44so9833999wrf.11 for <28906@debbugs.gnu.org>; Thu, 19 Oct 2017 16:26:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:in-reply-to:references:user-agent:date :message-id:mime-version:content-transfer-encoding; bh=49i5Z+lb2pl78tRPGfNmQ8LwPk4aY70mLTwk12pLY0A=; b=BxDV2W84DDLhURX+Cmn7mbsc+g3s4wmpTTel1ZFONgOgbZ6goK6tTDv7A2ajKNTHrV K5yhl8RI+0j06qKA7NAzeMhAP8Ka8vs1D/wkVxfAIe2sUxyGFKyP0slHNZoh4jI5mgLy 4V+TM9+56wXBNpofIwKyEhNSn9DJSxE5VMsCftMsXL6i3A0CpVJzbiF1YTmmNkn+colq x+3CRuQEsHVjOYZg+q8eHzAyuaDldcxsCTzQ1seRz8fQdqGKdtt7/NG0lA7BSTNHY1bw nHBnEo9LECPIaof3Pi4FSK6SQQN+a/v5qNnZbf869Gfq+XKFcibXTQBNE4UpvDplXMRK +GAw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:in-reply-to:references :user-agent:date:message-id:mime-version:content-transfer-encoding; bh=49i5Z+lb2pl78tRPGfNmQ8LwPk4aY70mLTwk12pLY0A=; b=AMMm8HMTC5kC6JMtPpr13qVwYc3f86wHk6q8xqd+KEhu5joMglTTtNu6hAQAfLRmZD lvrXwLfcO55nwxPNfFUXqDUgdmXPKxjw1Kfk4vI9h2+h8uKbBPwIojDbXBzaBaYBusME GWAqdI2GEekhadHvqiF1T2nBVSmma1USvTFZaNKeTpPf5tu3PTosgILEz3yWldgIjsSG PM7shabG8EBife4jcyXJ+dC+XTYUI5aZsGXdGqf090rhFTv/sRdczUPsIpGg+2Rwq09Y gZNbBM7XqBgaHxHNc0CwHo6gNWVmFaPA74THjzFHc7EExFPXf+ain9VK8WK2AlLav+Rw F2OA== X-Gm-Message-State: AMCzsaWWmFy/oMunsDB+0Y9t/1yKIqfyij7ODM/eUih7mVAE/UALAveX HBPLNrCWdzWaOekpW8tVnTUWIoCz X-Google-Smtp-Source: ABhQp+Q/gYJ1LxOLQgkipo3meutu/cK1etmwU97N2PtJxT1C5paj+UqVatgfLcW3GZu0UPSszOD1Ug== X-Received: by 10.223.189.6 with SMTP id j6mr2785154wrh.234.1508455591385; Thu, 19 Oct 2017 16:26:31 -0700 (PDT) Received: from lolita.yourcompany.com (188.139.62.94.rev.vodafone.pt. [94.62.139.188]) by smtp.gmail.com with ESMTPSA id u7sm926593wmf.15.2017.10.19.16.26.30 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 19 Oct 2017 16:26:30 -0700 (PDT) From: joaotavora@gmail.com (=?utf-8?B?Sm/Do28gVMOhdm9yYQ==?=) To: Glenn Morris Subject: Re: bug#28906: flymake test different-diagnostic-types fails In-Reply-To: (Glenn Morris's message of "Thu, 19 Oct 2017 18:48:23 -0400") References: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.90 (gnu/linux) Date: Fri, 20 Oct 2017 00:26:27 +0100 Message-ID: <87lgk6iusc.fsf@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -2.8 (--) X-Debbugs-Envelope-To: 28906 Cc: 28906@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.8 (--) Glenn Morris writes: > Package: emacs > Version: 26.0.90 > > Between 0fff900c18c3ae497294f26fd42b70990638d3ed and > 0b558b4acb8326c6f26fcde47ca85777716ae831 on emacs-26 (RHEL7 with gcc 4.8.= 5), > the flymake test "different-diagnostic-types" began failing with: > > (should (eq 'flymake-note (face-at-point))) > -> (eq flymake-note flymake-warning) > > Ref also eg https://hydra.nixos.org/build/62738472 This appears to be the first test run since the Flymake rewrite that was merged into emacs-26, so the test didn't really "begin failing", it just didn't exist before that. Anyway, I think there's a good chance that the culprit is gcc version 4.8.5 which probably outputs something that Flymake can't recognize as a note.=20 Is there any chance that Hydra can be upgraded to use a newer gcc, or should I skip this test for such gcc versions? Tips on how to install gcc 4 on debian alongside the system gcc are also welcome. Jo=C3=A3o From debbugs-submit-bounces@debbugs.gnu.org Thu Oct 19 19:42:29 2017 Received: (at 28906) by debbugs.gnu.org; 19 Oct 2017 23:42:29 +0000 Received: from localhost ([127.0.0.1]:50852 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1e5KSL-000448-7S for submit@debbugs.gnu.org; Thu, 19 Oct 2017 19:42:29 -0400 Received: from eggs.gnu.org ([208.118.235.92]:58712) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1e5KSI-00043p-Lj for 28906@debbugs.gnu.org; Thu, 19 Oct 2017 19:42:27 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1e5KSC-0001Sy-Mv for 28906@debbugs.gnu.org; Thu, 19 Oct 2017 19:42:21 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,RP_MATCHES_RCVD autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:43002) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1e5KS9-0001Rd-J7; Thu, 19 Oct 2017 19:42:17 -0400 Received: from rgm by fencepost.gnu.org with local (Exim 4.82) (envelope-from ) id 1e5KS9-0003qv-47; Thu, 19 Oct 2017 19:42:17 -0400 From: Glenn Morris To: joaotavora@gmail.com (=?utf-8?B?Sm/Do28gVMOhdm9yYQ==?=) Subject: Re: bug#28906: flymake test different-diagnostic-types fails References: <87lgk6iusc.fsf@gmail.com> X-Spook: U.S. Consulate Marxist cybercash rail gun BROMURE X-Ran: bIjGy7qc]81TKt@nsi`4ZGLC/7ZYcdA|*p[%V[NK`DAhaH|=SJSBYf}esOO)I*4zB.69y( X-Hue: green X-Debbugs-No-Ack: yes X-Attribution: GM Date: Thu, 19 Oct 2017 19:42:16 -0400 In-Reply-To: <87lgk6iusc.fsf@gmail.com> (=?utf-8?Q?=22Jo=C3=A3o_T=C3=A1vor?= =?utf-8?Q?a=22's?= message of "Fri, 20 Oct 2017 00:26:27 +0100") Message-ID: User-Agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: 28906 Cc: 28906@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.0 (-----) Jo=C3=A3o T=C3=A1vora wrote: > This appears to be the first test run since the Flymake rewrite that was > merged into emacs-26, so the test didn't really "begin failing", it just > didn't exist before that. Sorry; got fooled by git's unhelpful date fields. > Anyway, I think there's a good chance that the culprit is gcc version > 4.8.5 which probably outputs something that Flymake can't recognize as a > note.=20 FWIW, here's the output of "make errors-and-warnings.o": cc -c -o errors-and-warnings.o errors-and-warnings.c In file included from errors-and-warnings.c:3:0: some-problems.h:3:1: warning: data definition has no type or storage cl= ass [enabled by default] strange; ^ some-problems.h:5:1: error: unknown type name 'sint' sint main(); ^ errors-and-warnings.c: In function 'main': errors-and-warnings.c:9:3: warning: overflow in implicit constant conve= rsion [-Woverflow] char c =3D 1000; /* a note and a warning */ ^ errors-and-warnings.c:11:8: error: redeclaration of 'c' with no linkage char c; if (bla =3D=3D (void*)3); /* an error, and two warnings */ ^ errors-and-warnings.c:9:8: note: previous definition of 'c' was here char c =3D 1000; /* a note and a warning */ ^ errors-and-warnings.c:11:19: warning: comparison between pointer and in= teger [enabled by default] char c; if (bla =3D=3D (void*)3); /* an error, and two warnings */ > Is there any chance that Hydra can be upgraded to use a newer gcc, or > should I skip this test for such gcc versions? It's not just hydra. Eg RHEL7 still defaults to gcc 4.8, so I'd suggest skipping it. > Tips on how to install gcc 4 on debian alongside the system gcc are > also welcome. I think you'd have to install it by hand, since it doesn't seem to be in the Debian repos any more. From debbugs-submit-bounces@debbugs.gnu.org Thu Oct 19 19:56:09 2017 Received: (at 28906) by debbugs.gnu.org; 19 Oct 2017 23:56:09 +0000 Received: from localhost ([127.0.0.1]:50858 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1e5KfZ-0004Pv-Gn for submit@debbugs.gnu.org; Thu, 19 Oct 2017 19:56:09 -0400 Received: from eggs.gnu.org ([208.118.235.92]:60499) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1e5KfY-0004Ph-6q for 28906@debbugs.gnu.org; Thu, 19 Oct 2017 19:56:08 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1e5KfR-000295-MK for 28906@debbugs.gnu.org; Thu, 19 Oct 2017 19:56:02 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,RP_MATCHES_RCVD autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:43094) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1e5KfO-00026k-MY; Thu, 19 Oct 2017 19:55:58 -0400 Received: from rgm by fencepost.gnu.org with local (Exim 4.82) (envelope-from ) id 1e5KfO-0004Zi-Cj; Thu, 19 Oct 2017 19:55:58 -0400 From: Glenn Morris To: joaotavora@gmail.com (=?utf-8?B?Sm/Do28gVMOhdm9yYQ==?=) Subject: Re: bug#28906: flymake test different-diagnostic-types fails References: <87lgk6iusc.fsf@gmail.com> X-Spook: Albanian Power lines Mantis Border UMTS Virual X-Ran: 34PMs-_;+S+7HmS0yJ;pKK1}J{c\}XGY1zwSJykbS1AD#8^\%pR%L`hMw'}8l66NGT (Glenn Morris's message of "Thu, 19 Oct 2017 19:42:16 -0400") Message-ID: <4wbml2zo8h.fsf@fencepost.gnu.org> User-Agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/) MIME-Version: 1.0 Content-Type: text/plain X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: 28906 Cc: 28906@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.0 (-----) And here's the output with gcc 5.3 on the same system, where the test passes: cc -c -o errors-and-warnings.o errors-and-warnings.c In file included from errors-and-warnings.c:3:0: some-problems.h:3:1: warning: data definition has no type or storage class strange; ^ some-problems.h:3:1: warning: type defaults to 'int' in declaration of 'strange' [-Wimplicit-int] some-problems.h:5:1: error: unknown type name 'sint' sint main(); ^ errors-and-warnings.c: In function 'main': errors-and-warnings.c:9:12: warning: overflow in implicit constant conversion [-Woverflow] char c = 1000; /* a note and a warning */ ^ errors-and-warnings.c:11:8: error: redeclaration of 'c' with no linkage char c; if (bla == (void*)3); /* an error, and two warnings */ ^ errors-and-warnings.c:9:8: note: previous definition of 'c' was here char c = 1000; /* a note and a warning */ ^ errors-and-warnings.c:11:19: warning: comparison between pointer and integer char c; if (bla == (void*)3); /* an error, and two warnings */ ^ From debbugs-submit-bounces@debbugs.gnu.org Thu Oct 19 20:00:43 2017 Received: (at 28906) by debbugs.gnu.org; 20 Oct 2017 00:00:43 +0000 Received: from localhost ([127.0.0.1]:50862 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1e5Kjy-0004YB-2B for submit@debbugs.gnu.org; Thu, 19 Oct 2017 20:00:43 -0400 Received: from mail-qk0-f171.google.com ([209.85.220.171]:52080) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1e5Kjw-0004Xy-JR for 28906@debbugs.gnu.org; Thu, 19 Oct 2017 20:00:40 -0400 Received: by mail-qk0-f171.google.com with SMTP id 17so12467120qkq.8 for <28906@debbugs.gnu.org>; Thu, 19 Oct 2017 17:00:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=f38QTluSZTwyA7l7EwHp6W91enwWzBgGOYrlSmEt3Oo=; b=G3MAVrL5ip3RBl25H82e8FhTgdp1bHbuPcKAqojn8y0nFsjRYgS2ZKhUcY6liWLiXK wyy7dqKuY8W1Jh92pUiJTZljLwRj0yD0Lwre+VzaXmuH0GXSnZU8JrntPBoDIgJUQNuR Sfr8i6B6OQut09lE6KTbMo4fOa5/M16FvWIkSA7kGfprByWs9LtVFSZlRgk7sMMpNNIK aHMU+pRrHUhrJelBaBA8+O1N7puOK6yqKNFX1DOo3xu1rILxwliNen1bElzOc4S37ihg YgZvqwovs8UBuoaUTES+l/hPLXw6mag61WyC83QCxONM4iVhNqpBEkKabOb5FudqxXSG xgPg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=f38QTluSZTwyA7l7EwHp6W91enwWzBgGOYrlSmEt3Oo=; b=ZSclYH5mYbuQxeVLR0G47k/2NdWIcgZuwHS1QbQrRJ7dCq+iSwgN1kxi/dLuR3lymJ cDbg1r1D02lfn0Pfyln+uMP+sV5vS/sIxX+i+7imciss7CAnVnLwALYDFsmR9m3Dh0rW q16hsQYwY0xVvlhdtGlN1G1kvkjpFJendj1S7RCO8WgQBA4dWflNS0lIfC2/E+K9zqhQ 3Zs01MM2BL72qzNU1fVQmSrR/6YGeF87owGT3B/z0UJvlYPzN9ZgNgfWbCGtymgxA1Cm hlVziqPpBOyOfIZbl10D0TQD4pAF5tsg6FVGN5bFDivSTKaaMH+LsEghx1vfUVWb8bK2 W3XA== X-Gm-Message-State: AMCzsaU5JqeNCmrIITpgAeUvzzfSUoYwQ0jZ3O2i5e3gU5Xjjkt2XFpP z2ijO5JBCQxH0g0Li/bA6lptCdenBtIR1tedTnI= X-Google-Smtp-Source: ABhQp+SaAUBW/4VNrLldH5eQlDlNsBVer0UsaBjnR6qT5s1Fpmz4GbKCss2AmusFAKalAYe07wDD5v7J9YY043yOcTE= X-Received: by 10.55.175.132 with SMTP id y126mr4656323qke.45.1508457634941; Thu, 19 Oct 2017 17:00:34 -0700 (PDT) MIME-Version: 1.0 Received: by 10.12.145.228 with HTTP; Thu, 19 Oct 2017 17:00:14 -0700 (PDT) In-Reply-To: <4wbml2zo8h.fsf@fencepost.gnu.org> References: <87lgk6iusc.fsf@gmail.com> <4wbml2zo8h.fsf@fencepost.gnu.org> From: =?UTF-8?B?Sm/Do28gVMOhdm9yYQ==?= Date: Fri, 20 Oct 2017 01:00:14 +0100 Message-ID: Subject: Re: bug#28906: flymake test different-diagnostic-types fails To: Glenn Morris Content-Type: multipart/alternative; boundary="94eb2c0629367d5093055bef29a6" X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 28906 Cc: 28906@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.3 (--) --94eb2c0629367d5093055bef29a6 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Thanks, Glenn, it's the column positions of the warning on line 9. Flymake expects the warning to come after the note, but on gcc 4 it comes before. No biggie, I'll just skip it based on the output of gcc -v. On Fri, Oct 20, 2017 at 12:55 AM, Glenn Morris wrote: > > And here's the output with gcc 5.3 on the same system, where the test > passes: > > cc -c -o errors-and-warnings.o errors-and-warnings.c > In file included from errors-and-warnings.c:3:0: > some-problems.h:3:1: warning: data definition has no type or storage clas= s > strange; > ^ > some-problems.h:3:1: warning: type defaults to 'int' in declaration of > 'strange' [-Wimplicit-int] > some-problems.h:5:1: error: unknown type name 'sint' > sint main(); > ^ > errors-and-warnings.c: In function 'main': > errors-and-warnings.c:9:12: warning: overflow in implicit constant > conversion [-Woverflow] > char c =3D 1000; /* a note and a warning */ > ^ > errors-and-warnings.c:11:8: error: redeclaration of 'c' with no linkage > char c; if (bla =3D=3D (void*)3); /* an error, and two warnings */ > ^ > errors-and-warnings.c:9:8: note: previous definition of 'c' was here > char c =3D 1000; /* a note and a warning */ > ^ > errors-and-warnings.c:11:19: warning: comparison between pointer and > integer > char c; if (bla =3D=3D (void*)3); /* an error, and two warnings */ > ^ > > --=20 Jo=C3=A3o T=C3=A1vora --94eb2c0629367d5093055bef29a6 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Thanks, Glenn, it's the column positions of the warnin= g on line 9.

Flymake expects the warning to come after t= he note, but on=C2=A0
gcc 4 it comes before. No biggie, I'll = just skip it based on the=C2=A0
output of gcc -v.

On Fri, Oct 20, 2017 = at 12:55 AM, Glenn Morris <rgm@gnu.org> wrote:

And here's the output with gcc 5.3 on the same system, where the test p= asses:

cc=C2=A0 =C2=A0 -c -o errors-and-warnings.o errors-and-warnings.c
In file included from errors-and-warnings.c:3:0:
some-problems.h:3:1: warning: data definition has no type or storage class<= br>
=C2=A0strange;
=C2=A0^
some-problems.h:3:1: warning: type defaults to 'int' in declaration= of 'strange' [-Wimplicit-int]
some-problems.h:5:1: error: unknown type name 'sint= 9;
=C2=A0sint main();
=C2=A0^
errors-and-warnings.c: In function 'main':
errors-and-warnings.c:9:12: warning: overflow in implicit constant c= onversion [-Woverflow]
=C2=A0 =C2=A0char c =3D 1000; /* a = note and a warning */
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 ^
errors-and-warnings.c:11:8: error: redeclaration of 'c' with no lin= kage
=C2=A0 =C2=A0char c; if (bla =3D=3D (void*)3); /* an error, and two warning= s */
=C2=A0 =C2=A0 =C2=A0 =C2=A0 ^
errors-and-warnings.c:9:8: note: previous definition of 'c' was her= e
=C2=A0 =C2=A0char c =3D 1000; /* a note and a warning */
=C2=A0 =C2=A0 =C2=A0 =C2=A0 ^
errors-and-warnings.c:11:19: warning: comparison between pointer and intege= r
=C2=A0 =C2=A0char c; if (bla =3D=3D (void*)3); /* an error, and two warning= s */
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0^




--
=
Jo=C3=A3o= T=C3=A1vora
--94eb2c0629367d5093055bef29a6-- From debbugs-submit-bounces@debbugs.gnu.org Fri Oct 20 13:08:11 2017 Received: (at control) by debbugs.gnu.org; 20 Oct 2017 17:08:11 +0000 Received: from localhost ([127.0.0.1]:52658 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1e5amJ-0003KG-04 for submit@debbugs.gnu.org; Fri, 20 Oct 2017 13:08:11 -0400 Received: from eggs.gnu.org ([208.118.235.92]:44857) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1e5amH-0003K3-D3 for control@debbugs.gnu.org; Fri, 20 Oct 2017 13:08:09 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1e5amB-00086G-Ho for control@debbugs.gnu.org; Fri, 20 Oct 2017 13:08:04 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,RP_MATCHES_RCVD autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:39747) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1e5amB-000860-EI for control@debbugs.gnu.org; Fri, 20 Oct 2017 13:08:03 -0400 Received: from rgm by fencepost.gnu.org with local (Exim 4.82) (envelope-from ) id 1e5amB-0004rf-6U for control@debbugs.gnu.org; Fri, 20 Oct 2017 13:08:03 -0400 Subject: control message for bug 28906 To: X-Mailer: mail (GNU Mailutils 2.99.98) Message-Id: From: Glenn Morris Date: Fri, 20 Oct 2017 13:08:03 -0400 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.0 (-----) close 28906 26.0.91 From unknown Fri Sep 26 13:59:41 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Sat, 18 Nov 2017 12:24:03 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator