From 2ce794c1f3d961b17341359ceff7b71338eca697 Mon Sep 17 00:00:00 2001 From: Alan Cox Date: Sat, 22 Aug 2015 09:43:43 +0100 Subject: [PATCH] fcc: hide float/double warning on Z80 Or it's going to get annoying when we do x86 and 68000 --- Library/tools/fcc.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Library/tools/fcc.c b/Library/tools/fcc.c index 84e6c368..9ed827d8 100644 --- a/Library/tools/fcc.c +++ b/Library/tools/fcc.c @@ -2,6 +2,7 @@ #include #include #include +#include /* * Wrap the sdcc compiler tools into something more Unixlike and without @@ -377,6 +378,9 @@ static void build_command(void) if (opt == NULL || optcode < 3) add_argument("--opt-code-size"); /* Macros */ + /* Suppress the warnings when sharing code across architectures */ + add_argument("-Ddouble=float"); + /* User provided macros */ add_argument_list(machead); /* Paths */ add_option_list("-I", includehead); -- 2.34.1