author | zecke <zecke> | 2004-09-10 11:04:46 (UTC) |
---|---|---|
committer | zecke <zecke> | 2004-09-10 11:04:46 (UTC) |
commit | 224c96feb94acd6a87e1a2463aca9726afe925ef (patch) (side-by-side diff) | |
tree | 58addf357217e4e84d7231afed4a901b3a2e0bba /libopie2/opiecore/ofilenotify.cpp | |
parent | 2ec724fc789cd34f6b3743896516f2fef2731456 (diff) | |
download | opie-224c96feb94acd6a87e1a2463aca9726afe925ef.zip opie-224c96feb94acd6a87e1a2463aca9726afe925ef.tar.gz opie-224c96feb94acd6a87e1a2463aca9726afe925ef.tar.bz2 |
Fix warnings about unused parameters
Diffstat (limited to 'libopie2/opiecore/ofilenotify.cpp') (more/less context) (show whitespace changes)
-rw-r--r-- | libopie2/opiecore/ofilenotify.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libopie2/opiecore/ofilenotify.cpp b/libopie2/opiecore/ofilenotify.cpp index b576c4f..2a9bb8c 100644 --- a/libopie2/opiecore/ofilenotify.cpp +++ b/libopie2/opiecore/ofilenotify.cpp @@ -240,24 +240,26 @@ bool OFileNotification::hasChanged() void OFileNotification::singleShot( const QString& path, QObject* receiver, const char* member, OFileNotificationType type ) { OFileNotification* ofn = new OFileNotification(); ofn->_signal.connect( receiver, member ); ofn->start( path, true, type ); } void OFileNotification::__signalHandler( int sig, siginfo_t *si, void *data ) { + Q_UNUSED( sig ) + Q_UNUSED( data ) qWarning( "OFileNotification::__signalHandler(): reached." ); int fd = si->si_fd; OFileNotification* fn = notification_list[fd]; if ( fn ) { // check if it really was the file (dnotify triggers on directory granularity, not file granularity) if ( !fn->activate() ) { qDebug( "OFileNotification::__signalHandler(): false alarm ;) Restarting the trigger (if it was single)..." ); if ( !(fn->type() & Multi ) ) { int result = ::fcntl( fn->fileno(), F_NOTIFY, fn->type() ); |