-
-
Notifications
You must be signed in to change notification settings - Fork 465
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
[xrCore] Several Level 3 warnings eliminated #1623
Conversation
@Xottab-DUTY , I've addressed the spacing issue. However, I'm currently unable to pinpoint why the OpenBSD Debug build is failing, as I lack the means to establish a suitable testing environment. Would you happen to have any insights or suggestions on this matter? |
Just ignore it for now. It's always failing. |
1405861
to
682cd8d
Compare
What warning did you tried to fix with introducing xr_scanf? |
When building on windows, the following warning occurs: They suggest either using There is problem with 1st approach, because that function is only available on Windows. Redefining: The second option would be defining String Manipulation Functions
Memory Manipulation Functions
File Operation Functions
Other Functions
Determining the optimal approach is essential, as redefining every 'unsafe' function could be time-consuming and might not fully address potential security issues. Alternatively, addressing these concerns could necessitate code refactoring and the adoption of modern C++ practices, which, while potentially involving more effort, directly addresses the underlying security concerns. |
That's the problem I though about. It's better to just disable the warnings with
That's the best option. Slowly rewrite some unsafe C-style code to C++17. |
I kindly ask you to review the current changes. These changes do not completely fix all warnings within the xrCore module; there are several of them still left, but they might require more changes and are beyond the scope of this PR. Thank you in advance. |
Sorry for the long-time review! I was really busy with real life events during March. |
06ac892
to
4b8707d
Compare
4b8707d
to
5d9052d
Compare
@Xottab-DUTY, |
5b2ec76
to
6fffce9
Compare
I have addressed several Level 3 warnings within the xrCore component of the Engine.
It's important to note that there are still multiple warnings remaining unresolved. These may necessitate further discussion as I have focused on rectifying issues that were straightforward and did not demand significant code alterations or excessive use of explicit
static_cast
, except in instances where, in my opinion, a static cast was necessary.I believe this PR could be linked with #116.