File gpm-1.20.1-quiet_libgpm.patch of Package gpm

--- src/lib/report-lib.c
+++ src/lib/report-lib.c
@@ -26,6 +26,7 @@
 
 void gpm_report(int line, char *file, int stat, char *text, ... )
 {
+#ifndef QUIET_LIBGPM
    char *string = NULL;
    va_list ap;
    va_start(ap,text);
@@ -43,5 +44,7 @@
 
    va_end(ap);
 
+#endif /* QUIET_LIBGPM */
+
    if(stat == GPM_STAT_OOPS) exit(1);  /* may a lib function call exit ???? */
 }
openSUSE Build Service is sponsored by