File tree Expand file tree Collapse file tree 3 files changed +28
-4
lines changed Expand file tree Collapse file tree 3 files changed +28
-4
lines changed Original file line number Diff line number Diff line change @@ -23,7 +23,6 @@ along with longscroll-qt. If not see <http://www.gnu.org/licenses/>.
23
23
#include " longscroll-qt_global.h"
24
24
#include " notifyablescrollcontentwidget.h"
25
25
#include " contentiteminfo.h"
26
- #include < QAbstractItemView>
27
26
28
27
LONGSCROLLQT_NAMESPACE_BEGIN
29
28
Original file line number Diff line number Diff line change @@ -36,6 +36,15 @@ CONFIG += c++11
36
36
QMAKE_CXXFLAGS_RELEASE += /O2
37
37
}
38
38
39
+ !isEmpty (CONTINUOUS_INTEGRATION ) {
40
+ msvc {
41
+ QMAKE_CXXFLAGS += /WX
42
+ QMAKE_LFLAGS += /WX
43
+ } else {
44
+ QMAKE_CXXFLAGS += -Werror
45
+ QMAKE_LFLAGS += -Werror
46
+ }
47
+ }
39
48
40
49
DEFINES += LONGSCROLLQT_LIBRARY
41
50
Original file line number Diff line number Diff line change @@ -23,9 +23,24 @@ along with longscroll-qt. If not see <http://www.gnu.org/licenses/>.
23
23
#include <QtGlobal>
24
24
25
25
#ifdef Q_CC_GNU
26
- #pragma GCC diagnostic push
27
- #pragma GCC diagnostic ignored "-Wconversion"
28
- #pragma GCC diagnostic ignored "-Wfloat-conversion"
26
+ # pragma GCC diagnostic push
27
+ # pragma GCC diagnostic ignored "-Wconversion"
28
+ # if defined(__GNUC__ ) && defined(__GNUC_MINOR__ ) && (__GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 9 ))
29
+ # pragma GCC diagnostic ignored "-Wfloat-conversion"
30
+ # endif
31
+ #endif
32
+ #ifdef Q_CC_CLANG
33
+ # pragma GCC diagnostic ignored "-Wdeprecated"
34
+ # pragma GCC diagnostic ignored "-Wused-but-marked-unused"
35
+ # pragma GCC diagnostic ignored "-Wfloat-equal"
36
+ # pragma GCC diagnostic ignored "-Wsign-conversion"
37
+ # pragma GCC diagnostic ignored "-Wexit-time-destructors"
38
+ # pragma GCC diagnostic ignored "-Wcovered-switch-default"
39
+ # pragma GCC diagnostic ignored "-Wdisabled-macro-expansion"
40
+ # ifdef Q_OS_MAC
41
+ # pragma GCC diagnostic ignored "-Wdeprecated"
42
+ # else
43
+ # endif
29
44
#endif
30
45
31
46
#include <QScrollArea>
@@ -35,6 +50,7 @@ along with longscroll-qt. If not see <http://www.gnu.org/licenses/>.
35
50
#include <QPainter>
36
51
#include <QMouseEvent>
37
52
#include <QImageReader>
53
+ #include <QAbstractItemView>
38
54
39
55
#ifdef Q_CC_GNU
40
56
#pragma GCC diagnostic pop
You can’t perform that action at this time.
0 commit comments