Formatting of C++ warnings and errors

Gabriel Dos Reis gdr@codesourcery.com
Thu Mar 30 15:54:00 GMT 2000


Philipp Thomas <pthomas@suse.de> writes:

| Nathan,
| 
| if I remember correctly, it was you that changed the formatting of
| warning/error messages in g++. 

Well, the person to blame for that change -- including bugs and sort
of -- is me.

| ... If yes, is there a way to make g++ check the
| current line length, e.g. by doing getenv("COLUMNS")?

You can use -fmessage-length=WIDTH to change the maximum number of
characters per line.

| ... As my framebuffer
| console is 160x64, the messages look a bit funny as they're wrapped at 80
| columns. 

:-(

Work is being done to make diagnostics look less weird.

-- Gaby
CodeSourcery, LLC                             http://www.codesourcery.com


More information about the Gcc mailing list