clangd warnings

This commit is contained in:
ddidderr 2023-12-08 11:36:22 +01:00
parent fc9fc1a048
commit e74e05fa95
Signed by: ddidderr
GPG Key ID: 3841F1C27E6F0E14
2 changed files with 3 additions and 3 deletions

View File

@ -1,6 +1,6 @@
#!/bin/bash #!/bin/bash
set -e set -e
clang -Wall -Wextra -Weverything -Werror -O3 -march=native -flto -std=c17 -fstack-protector-all -s -o sudk_c "$1" clang -Weverything -Wno-unsafe-buffer-usage -Werror -O3 -march=native -flto -std=c17 -fstack-protector-all -s -o sudk_c "$1"
time ./sudk_c time ./sudk_c

View File

@ -5,7 +5,7 @@
#include <stdlib.h> #include <stdlib.h>
#include <sys/types.h> #include <sys/types.h>
static inline void Print_Clear() { printf("\x1b\x5b\x48\x1b\x5b\x32\x4a"); } static inline void Print_Clear(void) { printf("\x1b\x5b\x48\x1b\x5b\x32\x4a"); }
typedef struct Sudoku { typedef struct Sudoku {
uint8_t *field; uint8_t *field;
@ -258,7 +258,7 @@ static void Sudoku_Free(Sudoku *s) {
s = NULL; s = NULL;
} }
int main() { int main(void) {
Sudoku *s = Sudoku_New(3); Sudoku *s = Sudoku_New(3);
Sudoku_Print(s); Sudoku_Print(s);
Sudoku_SolveBacktracking(s); Sudoku_SolveBacktracking(s);