-Wformat-truncation outputs emtpy lines instead of source

2017-05-01 Thread Simon Sobisch
Hi, I've just got GCC7 (build from svn worked like a charm, even if it took hours but I was warned) and like the new warnings and hints very much. When compiling GnuCOBOL from vcs (sources on mount, therefore the long path) I got one warning with multiple and very long tilde lines. /media/sf_E

Re: -Wformat-truncation outputs emtpy lines instead of source

2017-05-01 Thread Martin Sebor
On 05/01/2017 01:39 PM, Simon Sobisch wrote: Hi, I've just got GCC7 (build from svn worked like a charm, even if it took hours but I was warned) and like the new warnings and hints very much. When compiling GnuCOBOL from vcs (sources on mount, therefore the long path) I got one warning with m

Re: -Wformat-truncation outputs emtpy lines instead of source

2017-05-02 Thread Simon Sobisch
I'm responding here as it was "opened" in this list directly. You were right, adding -fno-diagnostics-color doesn't show anything empty, changing it to -fdiagnostics-color bring the nice colors in - and the spaces instead of the code (yes, I've copied it directly from the terminal). I'm on the fol

Re: -Wformat-truncation outputs emtpy lines instead of source

2017-05-02 Thread Martin Sebor
On 05/02/2017 02:13 PM, Simon Sobisch wrote: I'm responding here as it was "opened" in this list directly. You were right, adding -fno-diagnostics-color doesn't show anything empty, changing it to -fdiagnostics-color bring the nice colors in - and the spaces instead of the code (yes, I've copied