From: DeaDDooMER Date: Wed, 22 Mar 2017 18:37:09 +0000 (+0300) Subject: Fix compilation in clang X-Git-Url: http://deadsoftware.ru/gitweb?p=mp3cc.git;a=commitdiff_plain Fix compilation in clang --- diff --git a/mpc/Makefile b/mpc/Makefile index e12def3..ef353bc 100644 --- a/mpc/Makefile +++ b/mpc/Makefile @@ -1,4 +1,4 @@ -CC = gcc +CC = clang CFLAGS = -g -DLINUX -DUNIX -DNDEBUG -D_CONSOLE LDFLAGS = -lm OUTPUT = mp3CC diff --git a/mpc/parser/parser.c b/mpc/parser/parser.c index a2acec5..12efd6c 100644 --- a/mpc/parser/parser.c +++ b/mpc/parser/parser.c @@ -6392,7 +6392,7 @@ void create_variable_bytecode(identifier *item, bytecode *code, char *name, int else { add_error_message(444, "", ""); - return 0; + return; } switch (item_type->type_class) diff --git a/mpc/util/memory.h b/mpc/util/memory.h index 5e7552f..b39982b 100644 --- a/mpc/util/memory.h +++ b/mpc/util/memory.h @@ -6,6 +6,8 @@ ********************************************************************/ +#include + struct memory_object_struct { struct memory_object_struct *next;