Bug 780489: Fix some compiler warnings in plugin and mac code. r=smichaud

This commit is contained in:
Josh Aas 2012-08-07 00:09:23 -04:00
parent 7c0b06ca0b
commit 75eebb8639
4 changed files with 4 additions and 5 deletions

View File

@ -2201,7 +2201,7 @@ nsresult nsPluginHost::ScanPluginsDirectory(nsIFile *pluginsDir,
// Avoid adding different versions of the same plugin if they are running
// in-process, otherwise we risk undefined behaviour.
if (!nsNPAPIPlugin::RunPluginOOP(pluginTag)) {
if (nsPluginTag *duplicate = HaveSamePlugin(pluginTag)) {
if (HaveSamePlugin(pluginTag)) {
continue;
}
}

View File

@ -12,7 +12,6 @@
#include "StreamNotifyParent.h"
#include "npfunctions.h"
#include "nsAutoPtr.h"
#include "mozilla/unused.h"
#include "gfxASurface.h"
#include "gfxContext.h"
#include "gfxPlatform.h"

View File

@ -28,6 +28,7 @@
class gfxXlibSurface;
#endif
#include "nsGUIEvent.h"
#include "mozilla/unused.h"
namespace mozilla {
namespace plugins {
@ -280,7 +281,7 @@ public:
nsresult HandleGUIEvent(const nsGUIEvent& anEvent, bool* handled);
#endif
void DidComposite() { SendNPP_DidComposite(); }
void DidComposite() { unused << SendNPP_DidComposite(); }
private:
// Create an appropriate platform surface for a background of size

View File

@ -521,8 +521,7 @@ nsFilePicker::GetFilterList()
NSMutableString* filterString = [[[NSMutableString alloc] initWithString:
[NSString stringWithCharacters:filterWide.get()
length:filterWide.Length()]] autorelease];
NSCharacterSet *set = [NSCharacterSet characterSetWithCharactersInString:
[NSString stringWithString:@". *"]];
NSCharacterSet *set = [NSCharacterSet characterSetWithCharactersInString:@". *"];
NSRange range = [filterString rangeOfCharacterFromSet:set];
while (range.length) {
[filterString replaceCharactersInRange:range withString:@""];