api: ifdef out fmtmsg.c and ndbm.c, fix stupid gcc messages
[libc-test] / src / api / Makefile
index be3671a..50dfdd7 100644 (file)
@@ -3,8 +3,8 @@ CFLAGS+=-std=c99 -pedantic-errors -Wall -Werror -Wno-unused -D_POSIX_C_SOURCE=20
 
 all:
        for i in *.c; do \
-               $(CC) $(CFLAGS) -c $$i 2>&1; \
-       done
+               LC_ALL=C $(CC) $(CFLAGS) -c $$i 2>&1; \
+       done |grep -v 'Each undeclared identifier is reported only once' |grep -v 'for each function it appears in'
        $(CC) $(LDFLAGS) -lcrypt -ldl -lm -lpthread -lrt *.o -o main
 
 clean: