mirror of
https://codeberg.org/grunfink/snac2.git
synced 2024-11-23 05:45:03 +00:00
Added -pedantic compilation flag.
This commit is contained in:
parent
e49c837cd7
commit
12373b018e
4 changed files with 5 additions and 4 deletions
2
Makefile
2
Makefile
|
@ -1,6 +1,6 @@
|
|||
PREFIX=/usr/local
|
||||
PREFIX_MAN=$(PREFIX)/man
|
||||
CFLAGS?=-g -Wall -Wextra
|
||||
CFLAGS?=-g -Wall -Wextra -pedantic
|
||||
|
||||
all: snac
|
||||
|
||||
|
|
2
xs.h
2
xs.h
|
@ -1070,7 +1070,7 @@ typedef struct {
|
|||
int size; /* size of full dict (_XS_TYPE_SIZE) */
|
||||
int first; /* first node for sequential search */
|
||||
int root; /* root node for hashed search */
|
||||
ditem_hdr ditems[]; /* the ditems */
|
||||
/* a bunch of ditem_hdr and value follows */
|
||||
} dict_hdr;
|
||||
|
||||
|
||||
|
|
|
@ -66,7 +66,8 @@ void *xs_rnd_buf(void *buf, int size)
|
|||
/* fill with full integers */
|
||||
while (n--) {
|
||||
xs_rnd_int32_d(&s);
|
||||
p = memcpy(p, &s, sizeof(s)) + sizeof(s);
|
||||
memcpy(p, &s, sizeof(s));
|
||||
p += sizeof(s);
|
||||
}
|
||||
|
||||
if ((n = size % sizeof(s))) {
|
||||
|
|
2
xs_url.h
2
xs_url.h
|
@ -17,7 +17,7 @@ xs_str *xs_url_dec(const char *str)
|
|||
|
||||
while (*str) {
|
||||
if (*str == '%') {
|
||||
int i;
|
||||
unsigned int i;
|
||||
|
||||
if (sscanf(str + 1, "%02x", &i) == 1) {
|
||||
unsigned char uc = i;
|
||||
|
|
Loading…
Reference in a new issue