GNU bug report logs - #28906
flymake test different-diagnostic-types fails

Previous Next

Package: emacs;

Reported by: Glenn Morris <rgm <at> gnu.org>

Date: Thu, 19 Oct 2017 22:49:01 UTC

Severity: normal

Found in version 26.0.90

Fixed in version 26.0.91

Done: Glenn Morris <rgm <at> gnu.org>

Bug is archived. No further changes may be made.

Full log


Message #15 received at 28906 <at> debbugs.gnu.org (full text, mbox):

From: João Távora <joaotavora <at> gmail.com>
To: Glenn Morris <rgm <at> gnu.org>
Cc: 28906 <at> debbugs.gnu.org
Subject: Re: bug#28906: flymake test different-diagnostic-types fails
Date: Fri, 20 Oct 2017 01:00:14 +0100
[Message part 1 (text/plain, inline)]
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 <rgm <at> gnu.org> 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 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 */
>                    ^
>
>


-- 
João Távora
[Message part 2 (text/html, inline)]

This bug report was last modified 7 years and 314 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.