]> git.zerfleddert.de Git - proxmark3-svn/commitdiff
Add -O3 on the client's side and fix yielding warnings
authorizsh@fail0verflow.com <izsh@fail0verflow.com@ef4ab9da-24cd-11de-8aaa-f3a34680c41f>
Sun, 21 Feb 2010 20:01:56 +0000 (20:01 +0000)
committerizsh@fail0verflow.com <izsh@fail0verflow.com@ef4ab9da-24cd-11de-8aaa-f3a34680c41f>
Sun, 21 Feb 2010 20:01:56 +0000 (20:01 +0000)
client/Makefile
client/cmddata.c
client/cmdhf15.c
client/cmdlf.c

index e1a5c4f7ba507f27973f0dd55309aa1db2d04d4b..4eae4bc70295668e0134d98da4c43ab08ed97d10 100644 (file)
@@ -12,9 +12,9 @@ OBJDIR = obj
 
 LDLIBS = -L/opt/local/lib -L/usr/local/lib -lusb -lreadline -lpthread
 LDFLAGS = $(COMMON_FLAGS)
 
 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)
 QTLDLIBS = $(shell pkg-config --libs QtCore QtGui 2>/dev/null)
 
 ifeq ($(shell uname),Darwin)
index 92e587abfc6c75321fee59f0cb4fb414390fbe59..5c61e536c7c37744f517b7f88da92e361ede40e7 100644 (file)
@@ -534,7 +534,7 @@ int CmdManchesterDemod(const char *Cmd)
   int i, j, invert= 0;
   int bit;
   int clock;
   int i, j, invert= 0;
   int bit;
   int clock;
-  int lastval;
+  int lastval = 0;
   int low = 0;
   int high = 0;
   int hithigh, hitlow, first;
   int low = 0;
   int high = 0;
   int hithigh, hitlow, first;
index 9c613b8665c9ab3db8d786e54054470806bd3426..576bd944030d918fd0a1841f594177c0a1da44d9 100644 (file)
@@ -90,7 +90,7 @@ int CmdHF15Demod(const char *Cmd)
   };
 
   int i, j;
   };
 
   int i, j;
-  int max = 0, maxPos;
+  int max = 0, maxPos = 0;
 
   int skip = 4;
 
 
   int skip = 4;
 
index 7b87c70fbfcfc87f1991163215303b4d9848a5a2..86bb35cea8038b08b90e5f031b1d3efa86349578 100644 (file)
@@ -401,7 +401,7 @@ int CmdVchDemod(const char *Cmd)
   bits[256] = '\0';
 
   int worst = INT_MAX;
   bits[256] = '\0';
 
   int worst = INT_MAX;
-  int worstPos;
+  int worstPos = 0;
 
   for (i = 0; i < 2048; i += 8) {
     int sum = 0;
 
   for (i = 0; i < 2048; i += 8) {
     int sum = 0;
Impressum, Datenschutz