This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[Ada] fix format of style warning
- From: Arnaud Charlet <charlet at adacore dot com>
- To: gcc-patches at gcc dot gnu dot org
- Cc: Sergey Rybin <rybin at adacore dot com>
- Date: Thu, 16 Jun 2005 11:37:46 +0200
- Subject: [Ada] fix format of style warning
Tested on i686-linux, committed on mainline.
The problem was that all the style warnings had the same format except the
warning generated by Body_With_No_Spec for spec-less subprograms - it
contained ':' after "(style)". This ':' is removed now.
The following is a test program:
procedure Test_It is
procedure Q is
begin
null;
end Q;
begin
null;
end Test_It;
The result should be:
test_it.adb:2:04: (style) subprogram body has no previous spec
when compiled with -gnatys
2005-06-14 Sergey Rybin <rybin@adacore.com>
* styleg-c.adb (Body_With_No_Spec): Remove ':' from warning message.