DEADSOFTWARE

Fix compilation in clang master
authorDeaDDooMER <deaddoomer@deadsoftware.ru>
Wed, 22 Mar 2017 18:37:09 +0000 (21:37 +0300)
committerDeaDDooMER <deaddoomer@deadsoftware.ru>
Wed, 22 Mar 2017 18:37:09 +0000 (21:37 +0300)
mpc/Makefile
mpc/parser/parser.c
mpc/util/memory.h

index e12def34f2d70f81765462a11181323123990e66..ef353bc310a08c4df0351f624862c667a5cb4711 100644 (file)
@@ -1,4 +1,4 @@
-CC = gcc
+CC = clang
 CFLAGS = -g -DLINUX -DUNIX -DNDEBUG -D_CONSOLE
 LDFLAGS = -lm
 OUTPUT = mp3CC
 CFLAGS = -g -DLINUX -DUNIX -DNDEBUG -D_CONSOLE
 LDFLAGS = -lm
 OUTPUT = mp3CC
index a2acec53a29458d3df6aa63044704f5a20eb847a..12efd6cce671387385a756146787a9f991604e9c 100644 (file)
@@ -6392,7 +6392,7 @@ void create_variable_bytecode(identifier *item, bytecode *code, char *name, int
        else
        {
                add_error_message(444, "", "");
        else
        {
                add_error_message(444, "", "");
-               return 0;
+               return;
        }
 
        switch (item_type->type_class)
        }
 
        switch (item_type->type_class)
index 5e7552f9c7c968c7d172dcdd6ec931ebc4d1347b..b39982bb0a8951b2252ee2c008b3ae85fe42a879 100644 (file)
@@ -6,6 +6,8 @@
 
 ********************************************************************/
 
 
 ********************************************************************/
 
+#include <stddef.h>
+
 struct memory_object_struct
 {
        struct memory_object_struct *next;
 struct memory_object_struct
 {
        struct memory_object_struct *next;