From 88f323de173f96e0d0e6b09327c6b91b7b871d1f Mon Sep 17 00:00:00 2001 From: Maschell Date: Sun, 4 Feb 2018 22:18:09 +0100 Subject: [PATCH] [example_plugin] not using the "real" function in example --- example_plugin/Makefile | 2 +- example_plugin/main.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/example_plugin/Makefile b/example_plugin/Makefile index 55c04b4..2ce2e3c 100644 --- a/example_plugin/Makefile +++ b/example_plugin/Makefile @@ -88,7 +88,7 @@ LD1FLAGS += --relocatable -s \ # -memb: enable embedded application specific compilation # -ffunction-sections: split up functions so linker can garbage collect # -fdata-sections: split up data so linker can garbage collect -CFLAGS += -O0 -Wall -x c -std=gnu11 \ +CFLAGS += -O0 -Wall -x c -std=gnu99 \ -nostdinc -ffreestanding \ -DGEKKO_U -D__wiiu__ \ -mrvl -mcpu=750 -meabi -mhard-float -fshort-wchar -fno-common \ diff --git a/example_plugin/main.c b/example_plugin/main.c index 24e36dc..01ccf6b 100644 --- a/example_plugin/main.c +++ b/example_plugin/main.c @@ -13,13 +13,13 @@ static int value = 15; static int my_func(void) { - int res = func(); + int res = 17; return 4 * value * res; } static int my_func2(void) { - int res = func(); + int res = 15; return 4 * value * res; }