$OpenBSD: patch-libiberty_Makefile_in,v 1.2 2007/12/28 17:11:25 espie Exp $
--- libiberty/Makefile.in.orig	Thu Nov  5 20:54:14 1998
+++ libiberty/Makefile.in	Fri Dec 28 18:00:24 2007
@@ -246,7 +246,7 @@ dummy.o: $(srcdir)/dummy.c $(srcdir)/functions.def
 	$(CC) -c $(CFLAGS) -I. -I$(INCDIR) $(HDEFINES) $(srcdir)/dummy.c 2>/dev/null
 
 errors: dummy.o $(EXTRA_OFILES)
-	-($(ERRORS_CC) -o dummy $(CFLAGS) $(LDFLAGS) $(ERRORS_LDFLAGS) dummy.o $(EXTRA_OFILES) $(LOADLIBES)) >errors 2>&1 || true
+	-($(ERRORS_CC) -o dummy $(CFLAGS) $(LDFLAGS) $(ERRORS_LDFLAGS) dummy.o $(EXTRA_OFILES) $(LOADLIBES)) | grep -v warning >errors 2>&1 || true
 
 # required-list is used when building a shared bfd/opcodes/libiberty library.
 required-list: Makefile
