From 2d213a306f611261d247d1520d3ef050c7f4ffea Mon Sep 17 00:00:00 2001 From: Thomas Van Lenten Date: Tue, 12 Jan 2016 10:02:48 -0500 Subject: Export unused symbols in category-only files for when they are used in static libs to avoid linker warnings --- Foundation/GTMNSFileHandle+UniqueName.m | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'Foundation/GTMNSFileHandle+UniqueName.m') diff --git a/Foundation/GTMNSFileHandle+UniqueName.m b/Foundation/GTMNSFileHandle+UniqueName.m index d373159..1424c44 100644 --- a/Foundation/GTMNSFileHandle+UniqueName.m +++ b/Foundation/GTMNSFileHandle+UniqueName.m @@ -20,6 +20,11 @@ #include +// Export a nonsense symbol to suppress a libtool warning when this is linked alone in a static lib. +__attribute__((visibility("default"))) + char GTMFileHandleUniqueNameExportToSuppressLibToolWarning = 0; + + @implementation NSFileHandle (GTMFileHandleUniqueNameAdditions) + (id)gtm_fileHandleWithUniqueNameBasedOn:(NSString *)pathTemplate -- cgit v1.2.3