mirror of
https://github.com/mirror/tinycc.git
synced 2026-08-30 11:57:51 +08:00
Fix 'unused function' warning on non-macOS targets
This commit is contained in:
2
libtcc.c
2
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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user