From a65d852a09737d5c1aafa381be3292109601921c Mon Sep 17 00:00:00 2001 From: bel Date: Tue, 1 Sep 2015 23:05:00 +0200 Subject: [PATCH] =?UTF-8?q?Third=20attempt=20to=20avoid=20a=20`implicit=20?= =?UTF-8?q?declaration=20of=20function=20=E2=80=98realpath=E2=80=99`=20err?= =?UTF-8?q?or=20on=20the=20remote=20build=20server?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- test/private_exe.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/test/private_exe.c b/test/private_exe.c index 93e43f7e..e7c2c2ca 100644 --- a/test/private_exe.c +++ b/test/private_exe.c @@ -33,12 +33,7 @@ * http://man7.org/linux/man-pages/man3/realpath.3.html * defining _XOPEN_SOURCE 600 should be enough, but in * practice this does not work. */ -#ifdef __clang__ -#pragma clang diagnostic ignored "-Wimplicit-function-declaration" -#endif -#ifdef GCC -#pragma GCC diagnostic ignored "-Wimplicit-function-declaration" -#endif +extern char *realpath(const char *path, char *resolved_path); #include "../src/main.c"