10000 【错误】Linux 编译时 `enumeration value 'WINDOW_MODE_SHOW' not handled in switch [-Werror=switch]` · Issue #41 · WeDot-Engine/WeDot · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

【错误】Linux 编译时 enumeration value 'WINDOW_MODE_SHOW' not handled in switch [-Werror=switch] #41

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

Open
PJ-568 opened this issue Nov 9, 2024 · 5 comments
Assignees
Labels
【错误】bug 描述未正常工作的功能。Something isn't working

Comments

@PJ-568
Copy link
Contributor
PJ-568 commented Nov 9, 2024

图片
图片
来源 #27 7d65cf0

@PJ-568 PJ-568 added the 【错误】bug 描述未正常工作的功能。Something isn't working label Nov 9, 2024
@PJ-568
Copy link
Contributor Author
PJ-568 commented Nov 10, 2024

@ienlaw

@ienlaw
Copy link
Contributor
ienlaw commented Nov 10, 2024

测试了,switch的最后加个 default:break; 可以修复问题

@PJ-568
Copy link
Contributor Author
PJ-568 commented Nov 10, 2024

不太推荐直接写 default:break;,这样其他人提交的代码出现不匹配时,编译器不会报错。

@PJ-568
Copy link
Contributor Author
PJ-568 commented Nov 10, 2024

至少写 case WINDOW_MODE_HIDE:break;case WINDOW_MODE_SHOW:break;

@PJ-568
Copy link
Contributor Author
PJ-568 commented Nov 10, 2024

其它错误的产生很可能是因为我之前合并的太过暴力了。一些 Godot 4.4 的新更改被覆盖了,需要你恢复。
图片

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
【错误】bug 描述未正常工作的功能。Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants
0