kravietz / pam_tacplus

TACACS+ protocol client library and PAM module in C. This PAM module support authentication, authorization (account management) and accounting (session management)performed using TACACS+ protocol designed by Cisco.
GNU Lesser General Public License v3.0
132 stars 102 forks source link

Add an option to disable -Werror #165

Closed ffontaine closed 4 years ago

ffontaine commented 4 years ago

Allow the user to disable -Werror to avoid the following build failure with gcc 4.8:

libtac/lib/magic.c:138:13: error: ignoring return value of 'read', declared with attribute warn_unused_result [-Werror=unused-result]
             (void) read(rfd, &seed, sizeof(seed));
             ^

Fixes:

Signed-off-by: Fabrice Fontaine fontaine.fabrice@gmail.com