Skip to content
This repository was archived by the owner on Apr 21, 2025. It is now read-only.

Build libtess2 with less strict warning flags to fix build#545

Merged
zanderso merged 1 commit intoflutter:masterfrom
zanderso:fix-libtess2
Feb 3, 2022
Merged

Build libtess2 with less strict warning flags to fix build#545
zanderso merged 1 commit intoflutter:masterfrom
zanderso:fix-libtess2

Conversation

@zanderso
Copy link
Member

@zanderso zanderso commented Feb 3, 2022

Without this, the impeller_unittests target fails to build, giving the error:

../../third_party/libtess2/Source/sweep.c:1138:6: error: unused variable 'fixedEdges' [-Werror,-Wunused-variable]
        int fixedEdges = 0;
            ^
1 error generated.

Copy link
Contributor

@chinmaygarde chinmaygarde left a comment

Choose a reason for hiding this comment

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

Didn't realize I had this uncommitted. Yes, without this patch, the release builds fail because the variable is only used in an assertion.

Another away to fix this would be to disable the warning in cflags_c. But this way is cleaner.

@zanderso
Copy link
Member Author

zanderso commented Feb 3, 2022

Yes, without this patch, the release builds fail because the variable is only used in an assertion.

Huh. There might be a problem with how asserts are enabled, then because I hit the compilation error in a debug build. I will land this and spend a couple minutes looking into it.

@zanderso zanderso merged commit 7964329 into flutter:master Feb 3, 2022
@zanderso zanderso deleted the fix-libtess2 branch February 3, 2022 16:14
zanderso added a commit to flutter/engine that referenced this pull request Feb 3, 2022
@chinmaygarde
Copy link
Contributor

chinmaygarde commented Feb 3, 2022 via email

@zanderso
Copy link
Member Author

zanderso commented Feb 3, 2022

Oh, yeah. I wasn't using --unopt. That was probably it.

zanderso added a commit to flutter/engine that referenced this pull request Feb 3, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants