Treat warnings as errors and fix existing warnings
This commit is contained in:
parent
2867764c56
commit
a16eefbff4
@ -114,6 +114,7 @@ QMAKE_DISTCLEAN += object_script.*
|
|||||||
|
|
||||||
include(../install.pri)
|
include(../install.pri)
|
||||||
include(../version.pri)
|
include(../version.pri)
|
||||||
|
include(../options.pri)
|
||||||
|
|
||||||
INCLUDEPATH += "../extra/modeltest"
|
INCLUDEPATH += "../extra/modeltest"
|
||||||
greaterThan(QT_MINOR_VERSION, 6) {
|
greaterThan(QT_MINOR_VERSION, 6) {
|
||||||
|
@ -553,7 +553,7 @@ void PortsWindow::updatePortViewActions(const QModelIndex& currentIndex)
|
|||||||
goto _EXIT;
|
goto _EXIT;
|
||||||
}
|
}
|
||||||
|
|
||||||
qDebug("currentChanged %llx", current.internalId());
|
qDebug("currentChanged %p", (void*)current.internalId());
|
||||||
|
|
||||||
if (plm->isPortGroup(current))
|
if (plm->isPortGroup(current))
|
||||||
{
|
{
|
||||||
|
@ -56,7 +56,7 @@ QLineEdit:enabled[inputMask = "HH HH HH HH HH HH; "] { background-colo
|
|||||||
<property name="title">
|
<property name="title">
|
||||||
<string>Basics</string>
|
<string>Basics</string>
|
||||||
</property>
|
</property>
|
||||||
<layout class="QGridLayout" name="gridLayout">
|
<layout class="QGridLayout" name="gridLayout2">
|
||||||
<item row="0" column="0">
|
<item row="0" column="0">
|
||||||
<widget class="QLabel" name="label_3">
|
<widget class="QLabel" name="label_3">
|
||||||
<property name="text">
|
<property name="text">
|
||||||
|
@ -57,12 +57,12 @@ StreamStatsModel::StreamStatsModel(QObject *parent)
|
|||||||
clearStats();
|
clearStats();
|
||||||
}
|
}
|
||||||
|
|
||||||
int StreamStatsModel::rowCount(const QModelIndex &parent) const
|
int StreamStatsModel::rowCount(const QModelIndex &/*parent*/) const
|
||||||
{
|
{
|
||||||
return guidList_.size();
|
return guidList_.size();
|
||||||
}
|
}
|
||||||
|
|
||||||
int StreamStatsModel::columnCount(const QModelIndex &parent) const
|
int StreamStatsModel::columnCount(const QModelIndex &/*parent*/) const
|
||||||
{
|
{
|
||||||
if (!portList_.size())
|
if (!portList_.size())
|
||||||
return 0;
|
return 0;
|
||||||
|
@ -19,8 +19,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
import "protocol.proto";
|
import "protocol.proto";
|
||||||
import "dot3.proto";
|
|
||||||
import "llc.proto";
|
|
||||||
|
|
||||||
package OstProto;
|
package OstProto;
|
||||||
|
|
||||||
|
@ -17,8 +17,6 @@ You should have received a copy of the GNU General Public License
|
|||||||
along with this program. If not, see <http://www.gnu.org/licenses/>
|
along with this program. If not, see <http://www.gnu.org/licenses/>
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import "protocol.proto";
|
|
||||||
|
|
||||||
package OstProto;
|
package OstProto;
|
||||||
|
|
||||||
/// Group Management Protocol (i.e. IGMP and MLD)
|
/// Group Management Protocol (i.e. IGMP and MLD)
|
||||||
|
@ -121,4 +121,5 @@ QMAKE_DISTCLEAN += object_script.*
|
|||||||
#QMAKE_EXTRA_TARGETS += binding
|
#QMAKE_EXTRA_TARGETS += binding
|
||||||
|
|
||||||
include(../protobuf.pri)
|
include(../protobuf.pri)
|
||||||
|
include(../options.pri)
|
||||||
|
|
||||||
|
@ -144,3 +144,4 @@ SOURCES += \
|
|||||||
QMAKE_DISTCLEAN += object_script.*
|
QMAKE_DISTCLEAN += object_script.*
|
||||||
|
|
||||||
include(../protobuf.pri)
|
include(../protobuf.pri)
|
||||||
|
include(../options.pri)
|
||||||
|
2
options.pri
Normal file
2
options.pri
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
QMAKE_CXXFLAGS += -isystem $$[QT_INSTALL_HEADERS]
|
||||||
|
QMAKE_CXXFLAGS_WARN_ON += -Wall -W -Wextra -Werror
|
@ -5,3 +5,5 @@ DEFINES += HAVE_REMOTE
|
|||||||
LIBS += -lprotobuf
|
LIBS += -lprotobuf
|
||||||
HEADERS += rpcserver.h rpcconn.h pbrpccontroller.h pbrpcchannel.h pbqtio.h
|
HEADERS += rpcserver.h rpcconn.h pbrpccontroller.h pbrpcchannel.h pbqtio.h
|
||||||
SOURCES += rpcserver.cpp rpcconn.cpp pbrpcchannel.cpp
|
SOURCES += rpcserver.cpp rpcconn.cpp pbrpcchannel.cpp
|
||||||
|
|
||||||
|
include (../options.pri)
|
||||||
|
@ -683,7 +683,7 @@ void Device::sendIp4Reply(PacketBuffer *pktBuf)
|
|||||||
uchar *pktData = pktBuf->push(20);
|
uchar *pktData = pktBuf->push(20);
|
||||||
uchar origTtl = pktData[8];
|
uchar origTtl = pktData[8];
|
||||||
uchar ipProto = pktData[9];
|
uchar ipProto = pktData[9];
|
||||||
quint32 srcIp, dstIp, tgtIp, mask;
|
quint32 srcIp, dstIp, tgtIp;
|
||||||
quint32 sum;
|
quint32 sum;
|
||||||
|
|
||||||
// Swap src/dst IP addresses
|
// Swap src/dst IP addresses
|
||||||
|
@ -57,3 +57,4 @@ QMAKE_DISTCLEAN += object_script.*
|
|||||||
|
|
||||||
include (../install.pri)
|
include (../install.pri)
|
||||||
include (../version.pri)
|
include (../version.pri)
|
||||||
|
include (../options.pri)
|
||||||
|
Loading…
Reference in New Issue
Block a user