From 7f44723565c53f1781f13cc1ea61226bfa94d5db Mon Sep 17 00:00:00 2001 From: Fredrik Fornwall Date: Fri, 29 Apr 2016 02:39:29 +0200 Subject: [PATCH] Silence compiler warnings for ctermid return value --- ndk_patches/stdio.h.patch | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ndk_patches/stdio.h.patch b/ndk_patches/stdio.h.patch index c64fda156..325fcf3cd 100644 --- a/ndk_patches/stdio.h.patch +++ b/ndk_patches/stdio.h.patch @@ -38,7 +38,7 @@ diff -u -r /home/fornwall/lib/android-ndk/platforms/android-21/arch-arm/usr/incl + +/* Used by perl, fish, and others */ +static char* ctermid(char* s) { -+ if (s == 0) return "/dev/tty"; ++ if (s == 0) return (char*) "/dev/tty"; + strcpy(s, "/dev/tty"); + return s; +}