summaryrefslogtreecommitdiffstats
path: root/subsurface-core
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2016-03-09 19:09:25 -0800
committerGravatar Dirk Hohndel <dirk@hohndel.org>2016-03-09 21:47:43 -0800
commit2d9c9c6a1c5b04170debc8d7b673aa643fe3aff2 (patch)
treebf72c8170f60719e6bfa244e452158562ffc0dfc /subsurface-core
parent0a585aad71499560d4221818bf36b25b655a4585 (diff)
downloadsubsurface-2d9c9c6a1c5b04170debc8d7b673aa643fe3aff2.tar.gz
Silence warnings in linux.c
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'subsurface-core')
-rw-r--r--subsurface-core/linux.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/subsurface-core/linux.c b/subsurface-core/linux.c
index d4131c7ea..a77f378ca 100644
--- a/subsurface-core/linux.c
+++ b/subsurface-core/linux.c
@@ -25,6 +25,7 @@ void subsurface_OS_pref_setup(void)
bool subsurface_ignore_font(const char *font)
{
// there are no old default fonts to ignore
+ (void)font;
return false;
}
@@ -41,7 +42,7 @@ void subsurface_user_info(struct user_info *user)
}
if (username && *username) {
char hostname[64];
- struct membuffer mb = { 0 };
+ struct membuffer mb = {};
gethostname(hostname, sizeof(hostname));
put_format(&mb, "%s@%s", username, hostname);
user->email = mb_cstring(&mb);
@@ -126,7 +127,7 @@ int enumerate_devices(device_callback_t callback, void *userdata, int dc_type)
if (fnmatch(patterns[i], ep->d_name, 0) == 0) {
char filename[1024];
int n = snprintf(filename, sizeof(filename), "%s/%s", dirname, ep->d_name);
- if (n >= sizeof(filename)) {
+ if (n >= (int)sizeof(filename)) {
closedir(dp);
return -1;
}
@@ -216,6 +217,7 @@ int subsurface_zip_close(struct zip *zip)
/* win32 console */
void subsurface_console_init(bool dedicated)
{
+ (void)dedicated;
/* NOP */
}