aboutsummaryrefslogtreecommitdiffstats
path: root/core/macos.c
diff options
context:
space:
mode:
authorGravatar jan Iversen <jani@libreoffice.org>2018-05-22 09:07:42 +0200
committerGravatar Dirk Hohndel <dirk@hohndel.org>2018-05-24 08:34:14 -0700
commit061be82e31f0d08804cd5d0edc2244540200fcea (patch)
tree94f0e5da65bab561200f9be245e25c507d6be850 /core/macos.c
parent6e253fa04f81be6fb26ff59cd5be39c85bfe3d19 (diff)
downloadsubsurface-061be82e31f0d08804cd5d0edc2244540200fcea.tar.gz
core: replace (void) with UNUSED(x) and include ssrf.h
Unused parameters in C are "silenced" by adding UNUSED(x) Signed-off-by: Jan Iversen <jani@apache.org>
Diffstat (limited to 'core/macos.c')
-rw-r--r--core/macos.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/core/macos.c b/core/macos.c
index 1fcd53511..686aeaac6 100644
--- a/core/macos.c
+++ b/core/macos.c
@@ -1,6 +1,7 @@
// SPDX-License-Identifier: GPL-2.0
/* macos.c */
/* implements Mac OS X specific functions */
+#include "ssrf.h"
#include <stdlib.h>
#include <dirent.h>
#include <fnmatch.h>
@@ -19,7 +20,7 @@
void subsurface_user_info(struct user_info *info)
{
- (void) info;
+ UNUSED(info);
/* Nothing, let's use libgit2-20 on MacOS */
}
@@ -46,7 +47,7 @@ void subsurface_OS_pref_setup(void)
bool subsurface_ignore_font(const char *font)
{
- (void) font;
+ UNUSED(font);
// there are no old default fonts to ignore
return false;
}