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
855855 #endif
856856 }
857857
858+#ifdef TCC_TARGET_MACHO
858859 /* Looks for the active developer SDK set by xcode-select (or the default
859860 one set during installation.) */
860861 #define SZPAIR(s) s "", sizeof(s)-1
@@ -885,6 +886,7 @@ ST_FUNC int tcc_add_macos_sdkpath(TCCState* s) · 24 unmodified lines
885886 #endif
886887 }
887888 #undef SZPAIR
889+#endif
888890
889891 LIBTCCAPI int tcc_set_output_type(TCCState *s, int output_type)
890892 {

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