From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=0.7 required=5.0 tests=BAYES_00,LOTS_OF_MONEY, MSGID_RANDY autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,43bab14b56c5ac49 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2001-01-21 08:20:18 PST Path: supernews.google.com!sn-xit-02!sn-xit-04!supernews.com!newsfeed.mesh.ad.jp!europa.netcrusader.net!207.172.3.44!feed2.news.rcn.net!rcn!cpk-news-hub1.bbnplanet.com!news.gtei.net!nntp2.deja.com!nnrp1.deja.com!not-for-mail From: Robert Dewar Newsgroups: comp.lang.ada Subject: Re: GNAT: warning: source alignment.... Date: Sun, 21 Jan 2001 16:14:23 GMT Organization: Deja.com Message-ID: <94f1sr$knn$1@nnrp1.deja.com> References: <979748441.912448@edh3> <945o97$7l3$1@nnrp1.deja.com> <%Gla6.290393$U46.9219457@news1.sttls1.wa.home.com> NNTP-Posting-Host: 205.232.38.14 X-Article-Creation-Date: Sun Jan 21 16:14:23 2001 GMT X-Http-User-Agent: Mozilla/4.61 [en] (OS/2; U) X-Http-Proxy: 1.0 x63.deja.com:80 (Squid/1.1.22) for client 205.232.38.14 X-MyDeja-Info: XMYDJUIDrobert_dewar Xref: supernews.google.com comp.lang.ada:4266 Date: 2001-01-21T16:14:23+00:00 List-Id: In article <%Gla6.290393$U46.9219457@news1.sttls1.wa.home.com>, "DuckE" wrote: > A) Does it make any sense to use a representation clause on > a discrete generic type as above? Sometimes yes, sometimes no, depends on more context than was shown here. > B) Why should the source alignment be an issue here? Alignment is always a potential issue in unchecked conversions of pointers. > C) I can only find alignment references to target objects - > which part of the RM is this discussed? Alignment is discussed in the RM, this particular warning is not, warnings have nothing to do with RM rules! > D) What can I do to remove these warnings? Depends on the particular context, as with all warnings, you are just being given some potentially useful information. It is up to you to analyze whether the information is useful in that it points up a real problem. If it points up a real problem, then fix the warning, if it does not point up a real problem, then suppress the warning (that's a generic comment on all warning messages). The warning is saying nothing more nor nothing less than it says. It is just conveying information that may be helpful in pointing out a potential error situation (in this case a problem with incorrect alignments). > As a regular contributor to comp.lang.ada you often > contribute meaninful information to this newsgroup. In this > instance however, you did not. Impossible to give more meaningful information without further context. A detailed analysis of the particular situation in the particular application is needed. Certainly I spend quite a bit of time on such detailed analyses in other situations, but detailed analysis of other peoples application problems is outside the scope of what I contribute to CLA! Sent via Deja.com http://www.deja.com/