Skip to content

Conversation

@affeltranger
Copy link

Replaces __ASM("NOP") with __NOP() and removes the volatile statement from surrounding loops.

C++ 20 deprecates the ++ operator in volatile variables, which is fine for the .c files, but not for header files included in .cpp.
The volatile statement in __NOP() ensures that the loop will not get optimized away when using a regular iterator instead of a volatile one.

Philipp Affeltranger added 2 commits October 22, 2025 08:36
- ++ operator on volatile variable is deprecated
- use __NOP() statement which includes volatile instead of __ASM("NOP")
…, remove volatile statement from affected loop iterators
@affeltranger affeltranger changed the title C++20 compatability C++20 compatibility Oct 22, 2025
Philipp Affeltranger added 2 commits October 22, 2025 09:15
…, remove volatile statement from affected loop iterators
- returns client_socket_id instead of SL_STATUS_OK
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.

1 participant