Mark unused parameters

This commit is contained in:
Jonas Kvinge
2020-07-17 16:36:24 +02:00
parent 7afde0e93f
commit 4140163ab2
5 changed files with 11 additions and 2 deletions

View File

@@ -159,7 +159,7 @@ QDebug operator<<(QDebug dbg, NSObject* object) {
- (void)application:(NSApplication*)app openFiles:(NSArray*)filenames { - (void)application:(NSApplication*)app openFiles:(NSArray*)filenames {
qLog(Debug) << "Wants to open:" << filenames; qLog(Debug) << "Wants to open:" << filenames;
[filenames enumerateObjectsUsingBlock:^(id object, NSUInteger idx, BOOL* stop) { [filenames enumerateObjectsUsingBlock:^(id object, NSUInteger, BOOL*) {
[self application:app openFile:(NSString*)object]; [self application:app openFile:(NSString*)object];
}]; }];

View File

@@ -47,6 +47,10 @@ void MacFSListener::Init() { run_loop_ = CFRunLoopGetCurrent(); }
void MacFSListener::EventStreamCallback(ConstFSEventStreamRef stream, void* user_data, size_t num_events, void* event_paths, const FSEventStreamEventFlags event_flags[], const FSEventStreamEventId event_ids[]) { void MacFSListener::EventStreamCallback(ConstFSEventStreamRef stream, void* user_data, size_t num_events, void* event_paths, const FSEventStreamEventFlags event_flags[], const FSEventStreamEventId event_ids[]) {
Q_UNUSED(stream);
Q_UNUSED(event_flags);
Q_UNUSED(event_ids);
MacFSListener* me = reinterpret_cast<MacFSListener*>(user_data); MacFSListener* me = reinterpret_cast<MacFSListener*>(user_data);
char** paths = reinterpret_cast<char**>(event_paths); char** paths = reinterpret_cast<char**>(event_paths);
for (size_t i = 0; i < num_events; ++i) { for (size_t i = 0; i < num_events; ++i) {

View File

@@ -206,5 +206,6 @@ void MacSystemTrayIcon::ClearNowPlaying() {
} }
void MacSystemTrayIcon::SetNowPlaying(const Song& song, const QUrl& cover_url) { void MacSystemTrayIcon::SetNowPlaying(const Song& song, const QUrl& cover_url) {
Q_UNUSED(cover_url);
p_->ShowNowPlaying(song.artist(), song.PrettyTitle()); p_->ShowNowPlaying(song.artist(), song.PrettyTitle());
} }

View File

@@ -837,7 +837,10 @@ quint64 MacOsDeviceLister::DeviceFreeSpace(const QString& serial) {
} }
QVariantMap MacOsDeviceLister::DeviceHardwareInfo(const QString& serial){return QVariantMap();} QVariantMap MacOsDeviceLister::DeviceHardwareInfo(const QString& serial){
Q_UNUSED(serial);
return QVariantMap();
}
bool MacOsDeviceLister::AskForScan(const QString& serial) const { bool MacOsDeviceLister::AskForScan(const QString& serial) const {
return !IsCDDevice(serial); return !IsCDDevice(serial);

View File

@@ -59,6 +59,7 @@ bool OSD::SupportsTrayPopups() { return false; }
void OSD::ShowMessageNative(const QString& summary, const QString& message, const QString& icon, const QImage& image) { void OSD::ShowMessageNative(const QString& summary, const QString& message, const QString& icon, const QImage& image) {
Q_UNUSED(icon); Q_UNUSED(icon);
Q_UNUSED(image);
if (NotificationCenterSupported()) { if (NotificationCenterSupported()) {
scoped_nsobject<NSString> mac_message( scoped_nsobject<NSString> mac_message(
[[NSString alloc] initWithUTF8String:message.toUtf8().constData()]); [[NSString alloc] initWithUTF8String:message.toUtf8().constData()]);