summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Stahl <mstahl@redhat.com>2012-01-04 21:08:40 +0100
committerMichael Stahl <mstahl@redhat.com>2012-01-04 21:09:30 +0100
commitf8bd56a2e2d0987326e2ed02e66e4bfa8fa3ec28 (patch)
treebee913ac774fff18e919edfd77526c042261b810
parentfef489ad0f1f14bd9f018552c47a93a80e8b353d (diff)
extensions: cast unused parameters to void
-rw-r--r--extensions/source/macosx/spotlight/GetMetadataForFile.m3
-rw-r--r--extensions/source/macosx/spotlight/main.m3
2 files changed, 4 insertions, 2 deletions
diff --git a/extensions/source/macosx/spotlight/GetMetadataForFile.m b/extensions/source/macosx/spotlight/GetMetadataForFile.m
index f93449a4472e..0702ef035151 100644
--- a/extensions/source/macosx/spotlight/GetMetadataForFile.m
+++ b/extensions/source/macosx/spotlight/GetMetadataForFile.m
@@ -48,11 +48,12 @@ typedef int NSColorRenderingIntent;
and return it as a dictionary
----------------------------------------------------------------------------- */
-Boolean GetMetadataForFile(void* /*thisInterface*/,
+Boolean GetMetadataForFile(void* thisInterface,
CFMutableDictionaryRef attributes,
CFStringRef contentTypeUTI,
CFStringRef pathToFile)
{
+ (void) thisInterface; /* unused */
/* Pull any available metadata from the file at the specified path */
/* Return the attribute keys and attribute values in the dict */
/* Return TRUE if successful, FALSE if there was no data provided */
diff --git a/extensions/source/macosx/spotlight/main.m b/extensions/source/macosx/spotlight/main.m
index 2fa2723a9c7f..cf0172c3aeb1 100644
--- a/extensions/source/macosx/spotlight/main.m
+++ b/extensions/source/macosx/spotlight/main.m
@@ -207,8 +207,9 @@ ULONG MetadataImporterPluginRelease(void *thisInstance)
// Implementation of the factory function for this type.
//
void *
-MetadataImporterPluginFactory(CFAllocatorRef /*allocator*/, CFUUIDRef typeID)
+MetadataImporterPluginFactory(CFAllocatorRef allocator, CFUUIDRef typeID)
{
+ (void) allocator; /* unused */
MetadataImporterPluginType *result;
CFUUIDRef uuid;