public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc r13-492] [Ada] Add <stdlib.h> #include in cstreams.c
@ 2022-05-16  8:44 Pierre-Marie de Rodat
  0 siblings, 0 replies; only message in thread
From: Pierre-Marie de Rodat @ 2022-05-16  8:44 UTC (permalink / raw)
  To: gcc-cvs

https://gcc.gnu.org/g:9abb17d9fad628a237136b3348ca33f189d2ad2b

commit r13-492-g9abb17d9fad628a237136b3348ca33f189d2ad2b
Author: Joel Brobecker <brobecker@adacore.com>
Date:   Fri Mar 11 04:22:26 2022 +0000

    [Ada] Add <stdlib.h> #include in cstreams.c
    
    When building the GNAT runtime for QNX, we get the following warning:
    
    | cstreams.c: In function '__gnat_full_name':
    | cstreams.c:209:5: warning: implicit declaration of function 'realpath'
    |                   [-Wimplicit-function-declaration]
    |   209 |     realpath (nam, buffer);
    |       |     ^~~~~~~~
    
    This commit fixes the warning by adding the corresponding #include
    of <stdlib.h>
    
    gcc/ada/
    
            * cstreams.c: Add <stdlib.h> #include.

Diff:
---
 gcc/ada/cstreams.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/gcc/ada/cstreams.c b/gcc/ada/cstreams.c
index e714162e1a8..48f996d09fa 100644
--- a/gcc/ada/cstreams.c
+++ b/gcc/ada/cstreams.c
@@ -46,6 +46,7 @@
 #include <sys/types.h>
 #include <sys/stat.h>
 #include <unistd.h>
+#include <stdlib.h>
 
 #ifdef _AIX
 /* needed to avoid conflicting declarations */


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2022-05-16  8:44 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-05-16  8:44 [gcc r13-492] [Ada] Add <stdlib.h> #include in cstreams.c Pierre-Marie de Rodat

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).