From 6b2def45ea0e5e1f999a06a6b2bd175662024abc Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Fri, 18 Dec 2015 11:55:53 +0100 Subject: dco + do not require gcc MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- src/auth/pam.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'src/auth/pam.c') diff --git a/src/auth/pam.c b/src/auth/pam.c index ed220a9..b418d18 100644 --- a/src/auth/pam.c +++ b/src/auth/pam.c @@ -32,7 +32,10 @@ #define __failed(RC) ((RC) != PAM_SUCCESS) -static void quit_pam(int sig) __attribute__((noreturn)); +#ifdef __GNUC__ +__attribute__((noreturn)) +#endif +static void quit_pam(int sig); static int conv_pam(int num_msg, const struct pam_message** msg, struct pam_response** resp, void* appdata_ptr); @@ -73,8 +76,10 @@ static char auto_authenticated = 1; static char* (*passphrase_reader)(void) = NULL; +#ifdef __GNUC__ # pragma GCC diagnostic push # pragma GCC diagnostic ignored "-Wsuggest-attribute=pure" +#endif /** * Exit if a PAM instruction failed * @@ -92,7 +97,9 @@ static void do_pam(int rc) _exit(1); } } +#ifdef __GNUC__ # pragma GCC diagnostic pop +#endif /** -- cgit v1.2.3-70-g09d2