Skip to content

Commit

Permalink
Try fix memset
Browse files Browse the repository at this point in the history
  • Loading branch information
Julian LALU committed Dec 19, 2024
1 parent a1a9052 commit 8a2e8cd
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion interface/core/memory/memory.h
Original file line number Diff line number Diff line change
Expand Up @@ -511,7 +511,8 @@ namespace hud
check(destination != nullptr);
memset(destination, value, size);
// Prevent compiler from removing the memset
[[maybe_unused]] volatile unsigned char *p = (volatile unsigned char *)destination;
volatile unsigned char *p = (volatile unsigned char *)destination;
(void *)p;
return destination;
}

Expand Down

0 comments on commit 8a2e8cd

Please sign in to comment.