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
Родитель 4f2ab3cfa0
Коммит 7e4448be80
4 изменённых файлов: 4 добавлений и 5 удалений

Просмотреть файл

@ -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;
}
}

Просмотреть файл

@ -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"

Просмотреть файл

@ -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

Просмотреть файл

@ -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:@""];