Add O3 optimization

This commit is contained in:
x3 2021-05-04 18:22:30 +02:00
parent bfef7d9084
commit 502ad833fc
Signed by: x3
GPG Key ID: 7E9961E8AD0E240E
2 changed files with 2 additions and 2 deletions

View File

@ -2,7 +2,7 @@ MultiThread = Yes
PROGNAME = torrent-verify PROGNAME = torrent-verify
CC = cc CC = cc
CFLAGS = -Wall -std=gnu99 -I./subm/heapless-bencode -Werror CFLAGS = -Wall -std=gnu99 -I./subm/heapless-bencode -Werror -O3
CPPFLAGS = -DPROGRAM_NAME='"$(PROGNAME)"' -DBUILD_INFO \ CPPFLAGS = -DPROGRAM_NAME='"$(PROGNAME)"' -DBUILD_INFO \
-DBUILD_HASH="\"`git rev-parse --abbrev-ref HEAD` -> `git rev-parse --short HEAD`\"" -DBUILD_DATE="\"`date -I`\"" -DBUILD_HASH="\"`git rev-parse --abbrev-ref HEAD` -> `git rev-parse --short HEAD`\"" -DBUILD_DATE="\"`date -I`\""

View File

@ -17,7 +17,7 @@
static int metainfo_read(const char* path, char** out_contents, int* out_size) { static int metainfo_read(const char* path, char** out_contents, int* out_size) {
int ret = 0; int ret = 0;
FILE* f = NULL; FILE* f = NULL;
long size; long size = 0;
char* contents = NULL, *curr_contents = NULL; char* contents = NULL, *curr_contents = NULL;
size_t read; size_t read;