From e5faf3c1da3a95ca17e0a644b2d9561929462d52 Mon Sep 17 00:00:00 2001 From: Miriam Ruiz Date: Fri, 8 Oct 2010 17:06:50 +0200 Subject: [PATCH] Added -pedantic and -ansi to CFLAGS and cleaned warnings --- Makefile | 4 ++-- src/infer.c | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index 697c088..8173e8d 100644 --- a/Makefile +++ b/Makefile @@ -1,6 +1,6 @@ NAME=rice MAJOR=0 -MINOR=0d1 +MINOR=0 all: lib$(NAME).so lib$(NAME).a @@ -8,7 +8,7 @@ SOURCES = $(shell find src -name '*.c') SHARED_OBJS = $(SOURCES:.c=.shared.o) STATIC_OBJS = $(SOURCES:.c=.static.o) -CFLAGS=-O2 -g -Wall +CFLAGS=-O2 -g -Wall -pedantic -ansi EXTRA_CFLAGS= STATIC_CFLAGS= $(CFLAGS) $(EXTRA_CFLAGS) SHARED_CFLAGS= $(CFLAGS) $(EXTRA_CFLAGS) -fPIC diff --git a/src/infer.c b/src/infer.c index 5cb4b99..742906d 100644 --- a/src/infer.c +++ b/src/infer.c @@ -296,7 +296,7 @@ FUNCTION(static void ApplyRule, { register int i; OBJ_CONDITION *condition; - float grade, degree; + float grade = GRD_UNKNOWN, degree; if((rule->slot.FIRED || rule->slot.FIRING) && !recursiveMode) return; -- 2.11.4.GIT