Add O3 optimization
This commit is contained in:
parent
bfef7d9084
commit
502ad833fc
2
Makefile
2
Makefile
@ -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`\""
|
||||||
|
|
||||||
|
@ -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;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user