To silence the BSD gcc compiler on unused function parameters,
use SWTPM_ATTR_UNUSED.
Signed-off-by: Stefan Berger <stefanb@linux.ibm.com>
#include <sys/stat.h>
#include <fcntl.h>
+#include "compiler_dependencies.h"
#include "swtpm.h"
#include "swtpm_utils.h"
}
/* Check user access in 'mode' to file/blockdev specified in backend state. */
-static int check_access(void *state, int mode, const struct passwd *curr_user) {
+static int check_access(void *state,
+ int mode SWTPM_ATTR_UNUSED,
+ const struct passwd *curr_user SWTPM_ATTR_UNUSED) {
const gchar *path = ((struct file_state*)state)->path;
int ret = access(path, R_OK|W_OK);
return ret == 0 || errno == ENOENT ? 0 : 1;