From cf0a50dcf05cec549e0725a5dda52fd512a49e38 Mon Sep 17 00:00:00 2001 From: stitchy Date: Mon, 16 Oct 2023 13:21:11 -0700 Subject: [PATCH] Fixes compile warningj --- movies/csv_parser.c | 2 +- movies/makefile | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/movies/csv_parser.c b/movies/csv_parser.c index 7de5725..bfbf168 100644 --- a/movies/csv_parser.c +++ b/movies/csv_parser.c @@ -12,7 +12,7 @@ struct node* parse_csv(char* name) { // Buffer File For chars char* buffer; size_t buff_size = 1000; - size_t chars = -2; + ssize_t chars = -2; buffer = malloc(buff_size * sizeof(char)); // Deal with Top of CSV diff --git a/movies/makefile b/movies/makefile index 226dea1..64b8d6c 100644 --- a/movies/makefile +++ b/movies/makefile @@ -1,4 +1,4 @@ -CC=gcc --std=c99 -g +CC=gcc --std=gnu99 -g output=movies all: movies.c csv_parser.o node.o input.o