522e48 api: ifdef out fmtmsg.c and ndbm.c, fix stupid gcc messages

Authored and Committed by nsz 12 years ago
    api: ifdef out fmtmsg.c and ndbm.c, fix stupid gcc messages
    
        
file modified
+2 -2
src/api/Makefile CHANGED
@@ -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:
file modified
+1 -1
src/api/fmtmsg.c CHANGED
@@ -1,4 +1,4 @@
1
- #ifdef _XOPEN_SOURCE
1
+ #if 0
2
2
#include <fmtmsg.h>
3
3
#define C(n) switch(n){case n:;}
4
4
static void f()
file modified
+2 -0
src/api/ndbm.c CHANGED
@@ -1,3 +1,4 @@
1
+ #if 0
1
2
#include <ndbm.h>
2
3
#define T(t) (t*)0;
3
4
#define F(t,n) {t *y = &x.n;}
@@ -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
+ #endif