Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Replicate the (coming) QT_ENABLE_STRICT_MODE_UP_TO macro #21

Merged
merged 1 commit into from
Apr 20, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 8 additions & 3 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -34,17 +34,22 @@ add_definitions(
-DPROJECT_VERSION="${PROJECT_VERSION}")

# Enable Qt's strict mode.
# \todo Use QT_ENABLE_STRICT_MODE when available (possibly in Qt 6.7).
# \todo Use QT_ENABLE_STRICT_MODE_UP_TO when available (possibly in Qt 6.8; see qtconfigmacros.h).
add_definitions(
#-DQT_NO_KEYWORDS ///< Applicable to the lib sub-project only.
# Qt 6.0.0
-DQT_NO_FOREACH
-DQT_NO_CAST_FROM_ASCII
-DQT_NO_CAST_TO_ASCII
-DQT_NO_CAST_FROM_BYTEARRAY
-DQT_NO_URL_CAST_FROM_STRING
-DQT_NO_NARROWING_CONVERSIONS_IN_CONNECT
-DQT_NO_CONTEXTLESS_CONNECT
-DQT_NO_JAVA_STYLE_ITERATORS
# Qt 6.6.0
-DQT_NO_QEXCHANGE
# Qt 6.7.0
-DQT_NO_CONTEXTLESS_CONNECT
# Qt 6.8.0
-DQT_NO_QASCONST
)

# Enable most compiler warnings, and treat as errors.
Expand Down
Loading