Skip to content

Commit

Permalink
Add QT_STRICT_QLIST_ITERATORS define to suppress warnings when creati…
Browse files Browse the repository at this point in the history
…ng QList from range
  • Loading branch information
equeim committed Dec 24, 2024
1 parent 38ac9df commit e94a560
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmake/CommonOptions.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ function(set_common_options_on_targets)
list(APPEND common_compile_options ${TREMOTESF_COMMON_COMPILE_OPTIONS})
endif()

set(common_compile_definitions QT_MESSAGELOGCONTEXT)
set(common_compile_definitions QT_MESSAGELOGCONTEXT QT_STRICT_QLIST_ITERATORS)

# QT_DISABLE_DEPRECATED_BEFORE can cause linker errors with static Qt
get_target_property(qt_library_type Qt::Core TYPE)
Expand Down

0 comments on commit e94a560

Please sign in to comment.