From f8bd56a2e2d0987326e2ed02e66e4bfa8fa3ec28 Mon Sep 17 00:00:00 2001 From: Michael Stahl Date: Wed, 4 Jan 2012 21:08:40 +0100 Subject: [PATCH] extensions: cast unused parameters to void --- extensions/source/macosx/spotlight/GetMetadataForFile.m | 3 ++- extensions/source/macosx/spotlight/main.m | 3 ++- 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;