Skip to content

Replace deprecated Q_OS_MAC with Q_OS_MACOS in Updater.cpp - #58

Merged
alex-spataru merged 1 commit into
alex-spataru:masterfrom
stefan-ebikes:patch-1
Oct 16, 2026
Merged

alex-spataru merged 1 commit into
alex-spataru:masterfrom
stefan-ebikes:patch-1

Conversation

@stefan-ebikes

Copy link
Copy Markdown
Contributor

To fix deprecation warning in Qt 6.12

Q_OS_MACOS has been available since Qt 5.8, so this doesn't affect compatibility with any Qt 6 version.

When building with Qt 6.12 using clang on macOS, src/Updater.cpp produces a deprecation warning:

src/Updater.cpp:59:15: warning: macro 'Q_OS_MAC' has been marked as deprecated: use Q_OS_MACOS for macOS or Q_OS_APPLE for all Apple platforms instead [-Wdeprecated-pragma]
59 | #elif defined Q_OS_MAC

This is the only use of Q_OS_MAC left in the repository.

…on warning in Qt 6.12)

Q_OS_MACOS has been available since Qt 5.8, so this doesn't affect compatibility with any Qt 6 version.
@alex-spataru
alex-spataru merged commit e474328 into alex-spataru:master Oct 16, 2026
@alex-spataru

Copy link
Copy Markdown
Owner

Thank you very much for the contribution! Merged.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants