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=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,6ea75cb98c3c832d X-Google-Attributes: gid103376,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news2.google.com!news.glorb.com!uns-out.usenetserver.com!news.usenetserver.com!pc02.usenetserver.com!news.flashnewsgroups.com-b7.4zTQh5tI3A!not-for-mail Newsgroups: comp.lang.ada Subject: Re: [Q] pragma Warnings References: <1196276028.10481.19.camel@kartoffel> From: Stephen Leake Date: Thu, 29 Nov 2007 17:37:33 -0500 Message-ID: User-Agent: Gnus/5.1006 (Gnus v5.10.6) Emacs/22.1 (windows-nt) Cancel-Lock: sha1:vfaOyF9XfxZbkJRqVnC/zVrzWG8= MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Complaints-To: abuse@flashnewsgroups.com Organization: FlashNewsgroups.com X-Trace: cfd74474f3f29e05e48ed01825 Xref: g2news1.google.com comp.lang.ada:18674 Date: 2007-11-29T17:37:33-05:00 List-Id: Georg Bauhaus writes: > Is there an alternative to placing compiler specific > pragma Warnings in portable (pragma-wise) Ada programs? With GNAT project files, it is easy to specify different command-line options for different source files. There are command line options to disable specific warnings. So you can disable warnings at the file level (not the line level). For non-GNAT compilers, it may be more difficult to specify different command-line options for different files. Gnu make can do it, but it is a pain. -- -- Stephe