mirror of
https://github.com/YACReader/yacreader
synced 2025-05-27 19:00:29 -04:00
Qmake: Introduce Qt deprecation macros
As the minimum build requirements are now Qt 5.9, enable the QT_DEPRECATED_SINCE macro and set the deprecation target to 5.9 and earlier. This will make our build fail if functions deprecated in Qt 5.9 or earlier are used. Also, enable the QT_DEPRECATED_WARNINGS macro so our build system warns us when we are using functions deprecated in newer versions of Qt so we can port away from those too.
This commit is contained in:
parent
14d9ba9de5
commit
75c2618eff
@ -39,6 +39,9 @@ minQtVersion(6, 0, 0) {
|
||||
error(YACReader does not support building with Qt6 (yet))
|
||||
}
|
||||
|
||||
DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x050900
|
||||
DEFINES += QT_DEPRECATED_WARNINGS
|
||||
|
||||
# reduce log pollution
|
||||
CONFIG += silent
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user