From ecb384ac0c64d04da53f1c6c290051049fe9f287 Mon Sep 17 00:00:00 2001 From: Sushant Pandurangi Date: Sat, 17 Jul 2021 13:42:54 +0200 Subject: [PATCH] Fix 'unused function' warning on non-macOS targets --- libtcc.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libtcc.c b/libtcc.c index 2002dd56..53f8fe5c 100644 --- a/libtcc.c +++ b/libtcc.c @@ -855,6 +855,7 @@ LIBTCCAPI void tcc_delete(TCCState *s1) #endif } +#ifdef TCC_TARGET_MACHO /* Looks for the active developer SDK set by xcode-select (or the default one set during installation.) */ #define SZPAIR(s) s "", sizeof(s)-1 @@ -885,6 +886,7 @@ ST_FUNC int tcc_add_macos_sdkpath(TCCState* s) #endif } #undef SZPAIR +#endif LIBTCCAPI int tcc_set_output_type(TCCState *s, int output_type) {