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.3 required=5.0 tests=BAYES_00, REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,f23a64423a4bd480 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2001-05-25 06:44:44 PST Path: archiver1.google.com!newsfeed.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!cpk-news-hub1.bbnplanet.com!cambridge1-snf1.gtei.net!news.gtei.net!bos-service1.ext.raytheon.com!dfw-service2.ext.raytheon.com.POSTED!not-for-mail Message-ID: <3B0E61CB.55F11006@raytheon.com> From: Mark Johnson Reply-To: mark_h_johnson@raytheon.com X-Mailer: Mozilla 4.76 [en] (X11; U; Linux 2.4.2-2smp i686) X-Accept-Language: en MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: compile warning References: <3B0C4EDD.A8487A63@oek.dk> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Date: Fri, 25 May 2001 08:44:43 -0500 NNTP-Posting-Host: 192.27.48.41 X-Complaints-To: news@ext.ray.com X-Trace: dfw-service2.ext.raytheon.com 990798284 192.27.48.41 (Fri, 25 May 2001 08:44:44 CDT) NNTP-Posting-Date: Fri, 25 May 2001 08:44:44 CDT Organization: Raytheon Company Xref: archiver1.google.com comp.lang.ada:7767 Date: 2001-05-25T08:44:43-05:00 List-Id: "Peter I. Hansen" wrote: > Hello I get the following warning when compiling with gnatmake : > > /usr/local/lib/gcc-lib/i386-unknown-freebsd4.3/2.8.1/adalib//libgnat.so: > warning: mktemp() possibly used unsafely; consider using mkstemp() > > I'm on a FreeBSD 4.3. > What can I do about this ? > > /Peter Ignore it. This particular problem w/ GNAT has already been reported to them. They do expect to fix it in a future release of the product. I am running with a recent "wavefront" (developmental release) on Linux, and get similar warning messages from the linker. >From reviewing the code - there are several functions that refer to mktemp or tmpnam and similar items. As far as I can tell - none of them are used by the run time library unless you explicitly call them yourself. --Mark