mirror of
https://bitbucket.org/librepilot/librepilot.git
synced 2025-01-20 05:52:11 +01:00
1b314ee256
cause: /projects/OpenPilot/git/ground/openpilotgcs/src/plugins/notify/notifyplugin.cpp:104:6: warning: unused parameter ‘configInfo’ [-Wunused-parameter] /projects/OpenPilot/git/ground/openpilotgcs/src/plugins/notify/notifyplugin.cpp:353:6: warning: unused parameter ‘values’ [-Wunused-parameter] /projects/OpenPilot/git/ground/openpilotgcs/src/plugins/notify/notifypluginoptionspage.cpp:73:10: warning: unused parameter ‘parent’ [-Wunused-parameter] /projects/OpenPilot/git/ground/openpilotgcs/src/plugins/notify/notifypluginoptionspage.cpp:451:6: warning: unused parameter ‘rangeStr’ [-Wunused-parameter] /projects/OpenPilot/git/ground/openpilotgcs/src/plugins/notify/notifypluginoptionspage.cpp:512:7: warning: unused parameter ‘oldstate’ [-Wunused-parameter] /projects/OpenPilot/git/ground/openpilotgcs/src/plugins/notify/notifypluginoptionspage.cpp:527:6: warning: unused parameter ‘deselected’ [-Wunused-parameter] implemented solution: fixed all of them (commented out var name) * fixed bug in check code cause: /projects/OpenPilot/git/ground/openpilotgcs/src/plugins/notify/notifyplugin.cpp: In member function ‘void SoundNotifyPlugin::checkNotificationRule(NotificationItem*, UAVObject*)’: /projects/OpenPilot/git/ground/openpilotgcs/src/plugins/notify/notifyplugin.cpp:398:109: warning: suggest parentheses around comparison in operand of ‘|’ [-Wparentheses] implemented solution: this is an obvious bug that is syntactically correct but leads to a warning with a good compiler so this bug can be found. fixed that to use logical or instead of bitwise or. * fixed bug in include file (error in compilation under Linux) cause: In file included from /projects/OpenPilot/git/ground/openpilotgcs/src/plugins/notify/notifypluginoptionspage.cpp:47:0: /projects/OpenPilot/git/ground/openpilotgcs/src/plugins/notify/notifytablemodel.h:86:39: error: reference ‘_list’ cannot be declared ‘mutable’ [-fpermissive] implemented solution: removed the mutable flag, as this is wrongly used on a reference (and therefore correctly causing a compile-time error
47 lines
1.5 KiB
C
47 lines
1.5 KiB
C
/**
|
|
******************************************************************************
|
|
*
|
|
* @file notifylogging.h
|
|
* @author The OpenPilot Team, http://www.openpilot.org Copyright (C) 2010.
|
|
* @brief Uses to logging only inside notify plugin,
|
|
* can be convinient turned on/off
|
|
* @see The GNU Public License (GPL) Version 3
|
|
* @defgroup notifyplugin
|
|
* @{
|
|
*
|
|
*****************************************************************************/
|
|
/*
|
|
* This program is free software; you can redistribute it and/or modify
|
|
* it under the terms of the GNU General Public License as published by
|
|
* the Free Software Foundation; either version 3 of the License, or
|
|
* (at your option) any later version.
|
|
*
|
|
* This program is distributed in the hope that it will be useful, but
|
|
* WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
|
|
* or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
|
* for more details.
|
|
*
|
|
* You should have received a copy of the GNU General Public License along
|
|
* with this program; if not, write to the Free Software Foundation, Inc.,
|
|
* 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
|
*/
|
|
|
|
#ifndef NOTIFYLOGGING_H
|
|
#define NOTIFYLOGGING_H
|
|
|
|
#include "qdebug.h"
|
|
|
|
#define DEBUG_NOTIFIES_ENABLE
|
|
|
|
#ifdef DEBUG_NOTIFIES_ENABLE
|
|
QDebug qNotifyDebug();
|
|
#endif
|
|
|
|
#ifndef DEBUG_NOTIFIES_ENABLE
|
|
QNoDebug qNotifyDebug();
|
|
#endif
|
|
|
|
#define qNotifyDebug_if(test) if(test) qNotifyDebug()
|
|
|
|
#endif // NOTIFYLOGGING_H
|