Skip to content

Commit

Permalink
Fix warning when building amalgamation as C++ with -Wextra
Browse files Browse the repository at this point in the history
warning: type qualifiers ignored on cast result type [-Wignored-qualifiers]
  • Loading branch information
basyskom-jvoe authored and jpfr committed Nov 28, 2023
1 parent d66c55c commit 4f7f879
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/open62541/util.h
Original file line number Diff line number Diff line change
Expand Up @@ -263,7 +263,7 @@ UA_ByteString_memZero(UA_ByteString *bs) {
SecureZeroMemory(bs->data, bs->length);
#else
volatile unsigned char *volatile ptr =
(volatile unsigned char *volatile)bs->data;
(volatile unsigned char *)bs->data;
size_t i = 0;
size_t maxLen = bs->length;
while(i < maxLen) {
Expand Down

0 comments on commit 4f7f879

Please sign in to comment.