File fix_compiler_warnings.patch of Package mce-test

---
 tsrc/Makefile   |    2 +-
 tsrc/tinjpage.c |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

Index: mce-test-0.1.20091225/tsrc/tinjpage.c
===================================================================
--- mce-test-0.1.20091225.orig/tsrc/tinjpage.c
+++ mce-test-0.1.20091225/tsrc/tinjpage.c
@@ -276,7 +276,7 @@ static void do_file_clean(int flags, cha
 	char *page;
 	char fn[30];
 	snprintf(fn, 30, TMPDIR "~test%d", tmpcount++);
-	int fd = open(fn, O_RDWR|O_TRUNC|O_CREAT);
+	int fd = open(fn, O_RDWR|O_TRUNC|O_CREAT, 0664);
 	if (fd < 0)
 		err("open temp file");
 	write(fd, fn, 4);
Index: mce-test-0.1.20091225/tsrc/Makefile
===================================================================
--- mce-test-0.1.20091225.orig/tsrc/Makefile
+++ mce-test-0.1.20091225/tsrc/Makefile
@@ -39,7 +39,7 @@ x.html: ttable
 see: x.html
 	${BROWSER} x.html
 
-tinjpage: LDFLAGS += -lpthread
+tinjpage: LDFLAGS += -Wl,--no-as-needed -lpthread
 
 .PHONY: clean distclean
 
openSUSE Build Service is sponsored by