mirror of
https://github.com/subsurface/subsurface.git
synced 2025-01-19 14:25:27 +00:00
Fix stupid mis-initialization of current sample
.. nice compiler warning hidden by the crazy gcc pointer sign warnings that nobody wants to see (yes, we really do want to do 'strlen()' even on unsigned strings, don't complain, crazy bitch compiler). So this also makes our CFLAGS set -Wno-pointer-sign. Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:
parent
414565e000
commit
4b3bd4b739
2 changed files with 5 additions and 2 deletions
5
Makefile
5
Makefile
|
@ -1,2 +1,5 @@
|
||||||
|
CC=gcc
|
||||||
|
CFLAGS=-Wall -Wno-pointer-sign -g
|
||||||
|
|
||||||
parse: parse.c
|
parse: parse.c
|
||||||
gcc -Wall -g -o parse `xml2-config --cflags` parse.c `xml2-config --libs`
|
$(CC) $(CFLAGS) -o parse `xml2-config --cflags` parse.c `xml2-config --libs`
|
||||||
|
|
2
parse.c
2
parse.c
|
@ -185,7 +185,7 @@ static void sample_start(void)
|
||||||
if (!dive)
|
if (!dive)
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
sample = dive->samples + nr;
|
sample = dive->sample + nr;
|
||||||
}
|
}
|
||||||
|
|
||||||
static void sample_end(void)
|
static void sample_end(void)
|
||||||
|
|
Loading…
Add table
Reference in a new issue