-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Global Declarations Hides Local Declarations #6417
Comments
Adding |
You seem to use a build flag combination that we don't have under test. |
of course, I can send a PR. btw. did you mean amalgamation multi arch when you say you didn't test it yet ? Also there was another problem about mbedtls 3.6.0 lts. I fixed it like this. |
open62541#6417 As I mentioned on my issue, these local variables create clash with same named global variable and it cause crash with VS2022 - C++ 20 - Unreal Engine 5. So, I renamed - local hierarchicalRefs to local_hierarchicalRefs - local baseEventTypeId to local_baseEventTypeId ``` 1>open62541.c(44318): error C4459: declaration of 'hierarchicalRefs' hides global declaration 1>open62541.c(26201): note: see declaration of 'hierarchicalRefs' 1>open62541.c(201758): error C4459: declaration of 'baseEventTypeId' hides global declaration 1>open62541.c(26254): note: see declaration of 'baseEventTypeId' 1>open62541.c(203173): error C4459: declaration of 'baseEventTypeId' hides global declaration 1>open62541.c(26254): note: see declaration of 'baseEventTypeId' 1>open62541.c(203248): error C4459: declaration of 'baseEventTypeId' hides global declaration 1>open62541.c(26254): note: see declaration of 'baseEventTypeId' 1>open62541.c(203291): error C4459: declaration of 'baseEventTypeId' hides global declaration 1>open62541.c(26254): note: see declaration of 'baseEventTypeId' 1>open62541.c(203458): error C4459: declaration of 'baseEventTypeId' hides global declaration 1>open62541.c(26254): note: see declaration of 'baseEventTypeId' ```
Description
After updating v1.3.9 to v1.4.0 or master branch on Unreal Engine 5.3.2 (C++ 20 enabled), Visual Studio 2022 gives these errors.
Background Information / Reproduction Steps
v1.4.0
Master Branch (Commit 10,126)
Used CMake options:
Checklist
Please provide the following information:
UA_LOGLEVEL
set as low as necessary) attachedThe text was updated successfully, but these errors were encountered: