Skip to content

Commit

Permalink
Fix printf warnings for MinGW
Browse files Browse the repository at this point in the history
*pow:@zxh
  • Loading branch information
ChickChicky committed Nov 7, 2024
1 parent 1337618 commit 0000006
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions nob.c
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@ int main(int argc, char **argv)
Cmd cmd = {0};

cmd_append(&cmd, "cc", "-Wall", "-Wextra", "-Wswitch-enum", "-ggdb", "-o", "randomart", "randomart.c", "-lm");
#ifdef __MINGW32__
cmd_append(&cmd, "-D__USE_MINGW_ANSI_STDIO");
#endif
if (!cmd_run_sync_and_reset(&cmd)) return 1;

cmd_append(&cmd, "./randomart");
Expand Down

0 comments on commit 0000006

Please sign in to comment.