bearded / ruby-ldap

Ruby/LDAP is an extension library for Ruby. It provides the interface to some LDAP libraries (e.g. OpenLDAP, Netscape SDK and Active Directory). The common API for application development is described in RFC1823 and is supported by Ruby/LDAP.
http://rubyforge.org/projects/ruby-ldap/
Other
66 stars 35 forks source link

Fix build error with GCC 4.8.1 #23

Closed kou closed 11 years ago

kou commented 11 years ago

This fixes "format not a string literal and no format arguments [-Werror=format-security]" error:

conn.c: In function ‘rb_ldap_conn_start_tls_s’:
conn.c:221:3: error: format not a string literal and no format arguments [-Werror=format-security]
   Check_LDAP_Result (ldapdata->err);
   ^
....
conn.c:557:3: error: format not a string literal and no format arguments [-Werror=format-security]
   Check_LDAP_OPT_Result (ldapdata->err);
   ^
....
conn.c: In function ‘rb_ldap_conn_get_option’:
conn.c:703:7: error: format not a string literal and no format arguments [-Werror=format-security]
       rb_raise (rb_eLDAP_Error, ldap_err2string (ldapdata->err));
       ^
ghost commented 11 years ago

Thank you, @kou !