Added -Wall and -Werror flags when building on mac (is in fact dependent on the compi...
authorKurt Pattyn <pattyn.kurt@gmail.com>
Fri, 30 Aug 2013 11:58:40 +0000 (13:58 +0200)
committerKurt Pattyn <pattyn.kurt@gmail.com>
Fri, 30 Aug 2013 11:58:40 +0000 (13:58 +0200)
src/qwebsockets.pri
src/qwebsockets.pro
tests/tests.pro

index 55d1e79..ec2ebd8 100644 (file)
@@ -1,25 +1,25 @@
 QT       *= network
 
 SOURCES += \
-       $$PWD/qwebsocket.cpp \
-       $$PWD/qwebsocket_p.cpp \
-       $$PWD/qwebsocketserver.cpp \
-       $$PWD/qwebsocketserver_p.cpp \
-       $$PWD/qwebsocketprotocol.cpp \
-       $$PWD/handshakerequest_p.cpp \
-       $$PWD/handshakeresponse_p.cpp \
-       $$PWD/dataprocessor_p.cpp
+    $$PWD/qwebsocket.cpp \
+    $$PWD/qwebsocket_p.cpp \
+    $$PWD/qwebsocketserver.cpp \
+    $$PWD/qwebsocketserver_p.cpp \
+    $$PWD/qwebsocketprotocol.cpp \
+    $$PWD/handshakerequest_p.cpp \
+    $$PWD/handshakeresponse_p.cpp \
+    $$PWD/dataprocessor_p.cpp
 
 HEADERS += \
-       $$PWD/qwebsocket.h \
-       $$PWD/qwebsocket_p.h \
-       $$PWD/qwebsocketserver.h \
-       $$PWD/qwebsocketserver_p.h \
-       $$PWD/qwebsocketprotocol.h \
-       $$PWD/handshakerequest_p.h \
-       $$PWD/handshakeresponse_p.h \
-       $$PWD/dataprocessor_p.h \
-       $$PWD/qwebsocketsglobal.h
+    $$PWD/qwebsocket.h \
+    $$PWD/qwebsocket_p.h \
+    $$PWD/qwebsocketserver.h \
+    $$PWD/qwebsocketserver_p.h \
+    $$PWD/qwebsocketprotocol.h \
+    $$PWD/handshakerequest_p.h \
+    $$PWD/handshakeresponse_p.h \
+    $$PWD/dataprocessor_p.h \
+    $$PWD/qwebsocketsglobal.h
 
 INCLUDEPATH += $$PWD
 DEPENDPATH += $$PWD
index 362d978..600d051 100644 (file)
@@ -7,3 +7,4 @@ VERSION = 0.9
 TARGET = QWebSockets
 
 mac:QMAKE_FRAMEWORK_BUNDLE_NAME = $$TARGET
+mac:QMAKE_CXXFLAGS += -Wall -Werror
index 9fcf123..576f775 100644 (file)
@@ -9,6 +9,8 @@ CONFIG  -= app_bundle
 
 TEMPLATE = app
 
+QMAKE_CXXFLAGS += -Wall -Werror
+
 include(../src/qwebsockets.pri)
 
 # Remove the main.cpp file from the sources.