Skip to content

Commit

Permalink
mkm: work around cn crash on sha_256.c
Browse files Browse the repository at this point in the history
GCC and Clang accept `__restrict` as an alias for the `restrict`
keyword, but CN does not.
  • Loading branch information
spernsteiner committed Dec 10, 2024
1 parent a7a3594 commit 2b2d294
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion components/mission_key_management/sha_256.c
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ extern void __builtin_write32_reversed(unsigned int * ptr, unsigned int x);

#include <stddef.h>

void * memcpy(void * __restrict, const void * __restrict, size_t);
void * memcpy(void * restrict, const void * restrict, size_t);
void * memset(void *, int, size_t);

/* from md32_common.h */
Expand Down

0 comments on commit 2b2d294

Please sign in to comment.