This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]