Fix clang compilation error:
error: format string is not a string literal [-Werror,-Wformat-nonliteral]
Signed-off-by: Gary Lockyer <gary@catalyst.net.nz>
Reviewed-by: Jeremy Allison <jra@samba.org>
Autobuild-User(master): Jeremy Allison <jra@samba.org>
Autobuild-Date(master): Fri Feb 12 00:10:50 UTC 2021 on sn-devel-184
if ((min_pwd_age > 0) &&
(pwd_last_set + min_pwd_age > time(NULL))) {
time_t next_change = pwd_last_set + min_pwd_age;
+#if defined(__clang__)
+#pragma clang diagnostic push
+#pragma clang diagnostic ignored "-Wformat-nonliteral"
+#endif
_make_remark_format(ctx, PAM_ERROR_MSG,
_get_ntstatus_error_string("NT_STATUS_PWD_TOO_RECENT"),
ctime(&next_change));
+#if defined(__clang__)
+#pragma clang diagnostic pop
+#endif
goto done;
}
break;