aboutsummaryrefslogtreecommitdiff
path: root/Foundation/GTMNSDictionary+URLArguments.m
diff options
context:
space:
mode:
authorGravatar Thomas Van Lenten <thomasvl@google.com>2016-01-12 10:02:48 -0500
committerGravatar Thomas Van Lenten <thomasvl@google.com>2016-01-12 10:02:48 -0500
commit2d213a306f611261d247d1520d3ef050c7f4ffea (patch)
tree0f1c0baad34c43451885924a81551afd7091bd3f /Foundation/GTMNSDictionary+URLArguments.m
parent5309ef8bdd4a52ed0c671579aa8a631510af79cc (diff)
Export unused symbols in category-only files for when they are used in static libs to avoid linker warnings
Diffstat (limited to 'Foundation/GTMNSDictionary+URLArguments.m')
-rw-r--r--Foundation/GTMNSDictionary+URLArguments.m10
1 files changed, 8 insertions, 2 deletions
diff --git a/Foundation/GTMNSDictionary+URLArguments.m b/Foundation/GTMNSDictionary+URLArguments.m
index 4799b2d..5a7aa5f 100644
--- a/Foundation/GTMNSDictionary+URLArguments.m
+++ b/Foundation/GTMNSDictionary+URLArguments.m
@@ -6,9 +6,9 @@
// Licensed under the Apache License, Version 2.0 (the "License"); you may not
// use this file except in compliance with the License. You may obtain a copy
// of the License at
-//
+//
// http://www.apache.org/licenses/LICENSE-2.0
-//
+//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
// WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
@@ -21,6 +21,12 @@
#import "GTMMethodCheck.h"
#import "GTMDefines.h"
+
+// Export a nonsense symbol to suppress a libtool warning when this is linked alone in a static lib.
+__attribute__((visibility("default")))
+ char GTMNSDictionaryURLArgumentsExportToSuppressLibToolWarning = 0;
+
+
@implementation NSDictionary (GTMNSDictionaryURLArgumentsAdditions)
GTM_METHOD_CHECK(NSString, gtm_stringByEscapingForURLArgument);