j***@yahoo.com
2018-11-14 19:06:19 UTC
I have a huge body of very old "legacy code" I need to recompile
frequently. The code works fine, but does cause a few warnings.
I've been compiling with gcc under cygwin. No problems. There
were a few useless warnings; I suppressed them with a few filters, e.g.
grep -v warning..this.decimal.constant.is.unsigned
Recently I upgraded cygwin, and got new versions of everything,
including gcc. ... but this new version produces LOTS of useless warnings.
I do NOT want to ignore ALL the warnings. Just the opposite;
I want to suppress the useless warnings so that USEFUL warnings
will be visible.
For example, the legacy code uses K&R style function definitions,
and no prototypes. Please don't lecture me that this is wrong.
THE CODE WORKS FINE. Except for the new gcc which not only complains
but insists on 3-line warnings that can't be discarded in their
entirety easily with 'grep -v.'
The lack of function prototypes is not the only problem, but let's
start there. Can I suppress these warnings on the command line?
I skimmed the manual and didn't see how.
Any help appreciated. Is finding a way to install the OLD gcc
compiler my best way forward??
Thanks. The e-mail address in the From line doesn't work.
Mail jamesdowallen at Gmail
James D. Allen
frequently. The code works fine, but does cause a few warnings.
I've been compiling with gcc under cygwin. No problems. There
were a few useless warnings; I suppressed them with a few filters, e.g.
grep -v warning..this.decimal.constant.is.unsigned
Recently I upgraded cygwin, and got new versions of everything,
including gcc. ... but this new version produces LOTS of useless warnings.
I do NOT want to ignore ALL the warnings. Just the opposite;
I want to suppress the useless warnings so that USEFUL warnings
will be visible.
For example, the legacy code uses K&R style function definitions,
and no prototypes. Please don't lecture me that this is wrong.
THE CODE WORKS FINE. Except for the new gcc which not only complains
but insists on 3-line warnings that can't be discarded in their
entirety easily with 'grep -v.'
The lack of function prototypes is not the only problem, but let's
start there. Can I suppress these warnings on the command line?
I skimmed the manual and didn't see how.
Any help appreciated. Is finding a way to install the OLD gcc
compiler my best way forward??
Thanks. The e-mail address in the From line doesn't work.
Mail jamesdowallen at Gmail
James D. Allen