aboutsummaryrefslogtreecommitdiff
path: root/analyzer/commands.c
diff options
context:
space:
mode:
authorMosder <xmosder12@gmail.com>2026-07-26 11:14:17 +0200
committerMosder <xmosder12@gmail.com>2026-07-26 11:14:17 +0200
commit69b8bf48614da9501763e232cec752650fe7cf55 (patch)
treed6c98409d7e172c2aa3245c49e7cd093049db1ac /analyzer/commands.c
parent3419cad016b3c34d0630456d4390c70063462d91 (diff)
refactor: added -Wextra to CFLAGS
Diffstat (limited to 'analyzer/commands.c')
-rw-r--r--analyzer/commands.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/analyzer/commands.c b/analyzer/commands.c
index 912bdf0..676c78d 100644
--- a/analyzer/commands.c
+++ b/analyzer/commands.c
@@ -28,6 +28,9 @@ int longest_command_length() {
// help command handler
int print_help(int argc, char *argv[]) {
+ (void)argc;
+ (void)argv;
+
int len = longest_command_length();
printf("A bare-bones analyzer for the game Broken Ranks\n");
@@ -52,6 +55,9 @@ int print_help(int argc, char *argv[]) {
// live analyzer command handler
int live_anal(int argc, char *argv[]) {
+ (void)argc;
+ (void)argv;
+
// TODO: implement
printf("Not implemented\n");
return 1;
@@ -70,7 +76,7 @@ int file_anal(int argc, char *argv[]) {
return 1;
}
- for (size_t i = 2; i < argc; i++) {
+ for (size_t i = 2; i < (size_t)argc; i++) {
printf("FILE: %s\n", argv[i]);
analyze_file(argv[i]);
printf("\n");