Tue, 19 Feb 2013 17:15:30 +0100
added optimizing for debug build
gcc-debug.mk | file | annotate | diff | comparison | revisions | |
ucx/buffer.c | file | annotate | diff | comparison | revisions |
1.1 --- a/gcc-debug.mk Fri Feb 08 17:09:12 2013 +0100 1.2 +++ b/gcc-debug.mk Tue Feb 19 17:15:30 2013 +0100 1.3 @@ -31,7 +31,7 @@ 1.4 AR = ar 1.5 RM = rm 1.6 1.7 -CFLAGS = -std=gnu99 -g -fstrict-aliasing -Werror -Wall -pedantic -c 1.8 +CFLAGS = -std=gnu99 -g -O2 -fstrict-aliasing -Werror -Wall -pedantic -c 1.9 COFLAGS = -o 1.10 LDFLAGS = 1.11 LOFLAGS = -o
2.1 --- a/ucx/buffer.c Fri Feb 08 17:09:12 2013 +0100 2.2 +++ b/ucx/buffer.c Tue Feb 19 17:15:30 2013 +0100 2.3 @@ -63,7 +63,7 @@ 2.4 } 2.5 2.6 int ucx_buffer_seek(UcxBuffer *buffer, off_t offset, int whence) { 2.7 - off_t npos; 2.8 + off_t npos = 0; 2.9 switch (whence) { 2.10 case SEEK_SET: 2.11 npos = 0;