522e48
api: ifdef out fmtmsg.c and ndbm.c, fix stupid gcc messages
@@ -3,8 +3,8 @@ CFLAGS+=-std=c99 -pedantic-errors -Wall -Werror -Wno-unused -D_POSIX_C_SOURCE=20
|
|
3
3
|
|
4
4
|
all:
|
5
5
|
for i in *.c; do \
|
6
|
-
$(CC) $(CFLAGS) -c $$i 2>&1; \
|
7
|
-
done
|
6
|
+
LC_ALL=C $(CC) $(CFLAGS) -c $$i 2>&1; \
|
7
|
+
done |grep -v 'Each undeclared identifier is reported only once' |grep -v 'for each function it appears in'
|
8
8
|
$(CC) $(LDFLAGS) -lcrypt -ldl -lm -lpthread -lrt *.o -o main
|
9
9
|
|
10
10
|
clean:
|
@@ -1,4 +1,4 @@
|
|
1
|
-
|
1
|
+
|
2
2
|
|
3
3
|
|
4
4
|
static void f()
|
@@ -1,3 +1,4 @@
|
|
1
|
+
|
1
2
|
|
2
3
|
|
3
4
|
|
@@ -23,3 +24,4 @@ C(DBM_REPLACE)
|
|
23
24
|
{DBM*(*p)(const char*,int,mode_t) = dbm_open;}
|
24
25
|
{int(*p)(DBM*,datum,datum,int) = dbm_store;}
|
25
26
|
}
|
27
|
+
|