History

Fix 'unused function' warning on non-macOS targets

Sushant Pandurangi committed 5 years ago

Commit ecb384a1 parent 46bf3f91 file · +2 −0Browse files

Unified · Split

libtcc.c+2−0
@@ -855,6 +855,7 @@ LIBTCCAPI void tcc_delete(TCCState *s1) · 854 unmodified lines
855#endif855#endif
856}856}
857 857
858#ifdef TCC_TARGET_MACHO
858/* Looks for the active developer SDK set by xcode-select (or the default859/* Looks for the active developer SDK set by xcode-select (or the default
859 one set during installation.) */860 one set during installation.) */
860#define SZPAIR(s) s "", sizeof(s)-1861#define SZPAIR(s) s "", sizeof(s)-1
@@ -885,6 +886,7 @@ ST_FUNC int tcc_add_macos_sdkpath(TCCState* s) · 24 unmodified lines
885#endif886#endif
886}887}
887#undef SZPAIR888#undef SZPAIR
889#endif
888 890
889LIBTCCAPI int tcc_set_output_type(TCCState *s, int output_type)891LIBTCCAPI int tcc_set_output_type(TCCState *s, int output_type)
890{892{

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t