Fixed up more warnings
authormichaelh <michaelh@4a8a32a2-be11-0410-ad9d-d568d2c75423>
Wed, 28 Nov 2001 02:02:46 +0000 (02:02 +0000)
committermichaelh <michaelh@4a8a32a2-be11-0410-ad9d-d568d2c75423>
Wed, 28 Nov 2001 02:02:46 +0000 (02:02 +0000)
git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@1652 4a8a32a2-be11-0410-ad9d-d568d2c75423

support/regression/ports/host/spec.mk
support/regression/tests/simplefloat.c

index 9471f7e94ce8b594df72dc9a2f39513ef2f5303d..caa98d3607b1de0c58daac5543a45e365473eaef 100644 (file)
@@ -1,6 +1,6 @@
 # Port specification for compiling on the host machines version of gcc
 SDCC = gcc
-SDCCFLAGS = -Wall -fsigned-char -DREENTRANT=
+SDCCFLAGS = -DPORT_HOST=1 -Wall -fsigned-char -DREENTRANT=
 
 EXEEXT = .bin
 
index deffb239bbb48c496551b141c006be6a4432459c..8f10a20587390f0eca64bf2fb2718375dbaa5865 100644 (file)
@@ -19,6 +19,7 @@ testCmp(void)
 void
 testDiv(void)
 {
+#if !PORT_HOST
   volatile float left, right;
 
   left = 17;
@@ -29,6 +30,7 @@ testDiv(void)
 
   right = 17;
   ASSERT(left/right == 1.0);
+#endif
 }
 
 void