added optimizing for debug build

Tue, 19 Feb 2013 17:15:30 +0100

author
Mike Becker <universe@uap-core.de>
date
Tue, 19 Feb 2013 17:15:30 +0100
changeset 84
7465c18765dc
parent 83
3b552d7a9610
child 85
0ef0df7aa2c2

added optimizing for debug build

gcc-debug.mk file | annotate | diff | comparison | revisions
ucx/buffer.c file | annotate | diff | comparison | revisions
--- a/gcc-debug.mk	Fri Feb 08 17:09:12 2013 +0100
+++ b/gcc-debug.mk	Tue Feb 19 17:15:30 2013 +0100
@@ -31,7 +31,7 @@
 AR = ar
 RM = rm
 
-CFLAGS  = -std=gnu99 -g -fstrict-aliasing -Werror -Wall -pedantic -c
+CFLAGS  = -std=gnu99 -g -O2 -fstrict-aliasing -Werror -Wall -pedantic -c
 COFLAGS = -o
 LDFLAGS = 
 LOFLAGS = -o
--- a/ucx/buffer.c	Fri Feb 08 17:09:12 2013 +0100
+++ b/ucx/buffer.c	Tue Feb 19 17:15:30 2013 +0100
@@ -63,7 +63,7 @@
 }
 
 int ucx_buffer_seek(UcxBuffer *buffer, off_t offset, int whence) {
-    off_t npos;
+    off_t npos = 0;
     switch (whence) {
     case SEEK_SET:
         npos = 0;

mercurial