From: Alan Cox Date: Sat, 22 Aug 2015 08:43:43 +0000 (+0100) Subject: fcc: hide float/double warning on Z80 X-Git-Url: https://git.ndcode.org/public/gitweb.cgi?a=commitdiff_plain;h=2ce794c1f3d961b17341359ceff7b71338eca697;p=FUZIX.git fcc: hide float/double warning on Z80 Or it's going to get annoying when we do x86 and 68000 --- 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);