File uwsgi-1.9.13-emperor_pg-Wformat.patch of Package uwsgi

--- a/plugins/emperor_pg/uwsgiplugin.py
+++ b/plugins/emperor_pg/uwsgiplugin.py
@@ -3,6 +3,9 @@ import os
 NAME='emperor_pg'
 CFLAGS = os.popen('pg_config --cflags').read().rstrip().split()
 CFLAGS.append('-I' + os.popen('pg_config --includedir').read().rstrip())
+# Add -Wformat since gcc complains about it's exclusion when -Wformat-security
+# comes from pg_config
+CFLAGS.append('-Wformat')
 LDFLAGS = os.popen('pg_config --ldflags').read().rstrip().split()
 LIBS = ['-L' + os.popen('pg_config --libdir').read().rstrip(), '-lpq']
 
openSUSE Build Service is sponsored by