Skip to content

Commit

Permalink
fix build under clang
Browse files Browse the repository at this point in the history
  • Loading branch information
serges147 committed May 6, 2024
1 parent fdd4d79 commit 13bf409
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -41,3 +41,7 @@ build/
cmake-build-*/
__pycache__/
dsdlc_generated/

# OS stuff
.DS_Store
*.bak
2 changes: 1 addition & 1 deletion socketcan/libcanard/src/socketcan.c
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
#define KILO 1000L
#define MEGA (KILO * KILO)

static int16_t getNegatedErrno()
static int16_t getNegatedErrno(void)
{
const int out = -abs(errno);
if (out < 0)
Expand Down

0 comments on commit 13bf409

Please sign in to comment.