diff options
author | Jan Pazdziora <jpazdziora@redhat.com> | 2014-05-09 14:28:15 +0200 |
---|---|---|
committer | Jan Pazdziora <jpazdziora@redhat.com> | 2014-05-13 09:16:48 +0200 |
commit | a4255ba67342c18573374408205ba4d214379301 (patch) | |
tree | 0a5b3bcc3601220861e5a5ded752056678fcf485 | |
parent | 7137c090ba514bd890d3b1c1e1cdc5cf068b6f5c (diff) | |
download | mod_lookup_identity-a4255ba67342c18573374408205ba4d214379301.tar.gz mod_lookup_identity-a4255ba67342c18573374408205ba4d214379301.tar.xz mod_lookup_identity-a4255ba67342c18573374408205ba4d214379301.zip |
Compile to C99.
Addressing
warning: ISO C90 forbids mixed declarations and code
warning: ISO C90 forbids specifying subobject to initialize
-rw-r--r-- | README | 7 | ||||
-rw-r--r-- | mod_lookup_identity.spec | 2 |
2 files changed, 5 insertions, 4 deletions
@@ -188,15 +188,16 @@ Building from sources When building from sources, command - apxs -i -a -c $(pkg-config --cflags dbus-1) \ - mod_lookup_identity.c $(pkg-config --libs dbus-1) -Wall -pedantic + apxs -i -a -c $(pkg-config --cflags dbus-1) $(pkg-config --libs dbus-1) \ + -Wc,"-Wall -pedantic -std=c99" mod_lookup_identity.c should build and install the module. If the available version of sssd does not provide or is not configured to provide the ifp dbus service, compile with - apxs -DNO_USER_ATTR -i -a -c mod_lookup_identity.c -Wall -pedantic + apxs -DNO_USER_ATTR -i -a -c -Wc,"-Wall -pedantic -std=c99" \ + mod_lookup_identity.c In that case, the LookupUserAttr functionality will not be compiled in and will not be available. diff --git a/mod_lookup_identity.spec b/mod_lookup_identity.spec index 0217216..5bc77d3 100644 --- a/mod_lookup_identity.spec +++ b/mod_lookup_identity.spec @@ -34,7 +34,7 @@ Use of REMOTE_USER_* environment variables is recommended. %setup -q -n %{name}-%{version} %build -%{_httpd_apxs} -c -Wc,"%{optflags} -Wall -pedantic $(pkg-config --cflags dbus-1)" $(pkg-config --libs dbus-1) mod_lookup_identity.c +%{_httpd_apxs} -c -Wc,"%{optflags} -Wall -pedantic -std=c99 $(pkg-config --cflags dbus-1)" $(pkg-config --libs dbus-1) mod_lookup_identity.c %install rm -rf $RPM_BUILD_ROOT |