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

Remove -Werror. #1085

Merged
merged 1 commit into from
Apr 15, 2024
Merged

Remove -Werror. #1085

merged 1 commit into from
Apr 15, 2024

Conversation

mgautierfr
Copy link
Member

@mgautierfr mgautierfr commented Apr 12, 2024

-Werror make compilation fails on Windows.

The exact warning making the compilation failing is not clear.
See (https://ci.appveyor.com/project/Kiwix/kiwix-build/builds/49600994 for example).

Compilation without -Werror is ok (https://ci.appveyor.com/project/Kiwix/kiwix-build/builds/49601697)

Fix kiwix/kiwix-build#690

@kelson42
Copy link
Collaborator

@veloman-yunkan @mgautierfr Is that a good idea to relax here? Actually I have asking yesterday in an other ticket to implement -Wall?!

@mgautierfr
Copy link
Member Author

Is that a good idea to relax here?

In absolute terms, not. But without at least an error message telling us what's wrong it would be difficult to fix the warning. In the meanwhile kiwix-desktop is not compiling on Windows and we cannot publish nightly or release.

Maybe good to keep a issue open about that but for now I think the priority is to keep kiwix-desktop building on Windows.

@@ -18,7 +18,7 @@ greaterThan(QT_MAJOR_VERSION, 4): QT += widgets
TARGET = kiwix-desktop
TEMPLATE = app

QMAKE_CXXFLAGS += -std=c++17 -Werror
QMAKE_CXXFLAGS += -std=c++17
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can't we disable -Werror only under Windows?

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We have a general problem that Windows compiler options are not the same as gcc. We have a similar situation with the cpp17 option.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@kelson42 it is not clear to me what the issue is. Can we not do something like the below?

!win32 {
    QMAKE_CXXFLAGS += -Werror
}

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done.

Successful build with last change is https://ci.appveyor.com/project/Kiwix/kiwix-build/builds/49615228

@kelson42
Copy link
Collaborator

Maybe good to keep a issue open about that but for now I think the priority is to keep kiwix-desktop building on Windows.

I have open #1087

`-Werror` make compilation fails on Windows.
Copy link
Collaborator

@sgourdas sgourdas left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@mgautierfr mgautierfr merged commit 2a6fd5f into main Apr 15, 2024
4 checks passed
@mgautierfr mgautierfr deleted the no_werror branch April 15, 2024 12:07
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.

No Kiwix Desktop for Windows anymore
4 participants