From fddf220a8bb4fd84ec38d23031859f6ca9540084 Mon Sep 17 00:00:00 2001 From: "izsh@fail0verflow.com" Date: Sun, 21 Feb 2010 20:01:56 +0000 Subject: [PATCH] Add -O3 on the client's side and fix yielding warnings --- client/Makefile | 4 ++-- client/cmddata.c | 2 +- client/cmdhf15.c | 2 +- client/cmdlf.c | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/client/Makefile b/client/Makefile index e1a5c4f7b..4eae4bc70 100644 --- a/client/Makefile +++ b/client/Makefile @@ -12,9 +12,9 @@ OBJDIR = obj LDLIBS = -L/opt/local/lib -L/usr/local/lib -lusb -lreadline -lpthread LDFLAGS = $(COMMON_FLAGS) -CFLAGS = -std=gnu99 -I. -I../include -I../common -I/opt/local/include -Wall -Wno-unused-function $(COMMON_FLAGS) -g3 +CFLAGS = -std=gnu99 -I. -I../include -I../common -I/opt/local/include -Wall -Wno-unused-function $(COMMON_FLAGS) -g -O3 -CXXFLAGS = $(shell pkg-config --cflags QtCore QtGui 2>/dev/null) -Wall +CXXFLAGS = $(shell pkg-config --cflags QtCore QtGui 2>/dev/null) -Wall -O3 QTLDLIBS = $(shell pkg-config --libs QtCore QtGui 2>/dev/null) ifeq ($(shell uname),Darwin) diff --git a/client/cmddata.c b/client/cmddata.c index 92e587abf..5c61e536c 100644 --- a/client/cmddata.c +++ b/client/cmddata.c @@ -534,7 +534,7 @@ int CmdManchesterDemod(const char *Cmd) int i, j, invert= 0; int bit; int clock; - int lastval; + int lastval = 0; int low = 0; int high = 0; int hithigh, hitlow, first; diff --git a/client/cmdhf15.c b/client/cmdhf15.c index 9c613b866..576bd9440 100644 --- a/client/cmdhf15.c +++ b/client/cmdhf15.c @@ -90,7 +90,7 @@ int CmdHF15Demod(const char *Cmd) }; int i, j; - int max = 0, maxPos; + int max = 0, maxPos = 0; int skip = 4; diff --git a/client/cmdlf.c b/client/cmdlf.c index 7b87c70fb..86bb35cea 100644 --- a/client/cmdlf.c +++ b/client/cmdlf.c @@ -401,7 +401,7 @@ int CmdVchDemod(const char *Cmd) bits[256] = '\0'; int worst = INT_MAX; - int worstPos; + int worstPos = 0; for (i = 0; i < 2048; i += 8) { int sum = 0;