mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Silence warnings in linux.c
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
0a585aad71
commit
2d9c9c6a1c
1 changed files with 4 additions and 2 deletions
|
@ -25,6 +25,7 @@ void subsurface_OS_pref_setup(void)
|
||||||
bool subsurface_ignore_font(const char *font)
|
bool subsurface_ignore_font(const char *font)
|
||||||
{
|
{
|
||||||
// there are no old default fonts to ignore
|
// there are no old default fonts to ignore
|
||||||
|
(void)font;
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -41,7 +42,7 @@ void subsurface_user_info(struct user_info *user)
|
||||||
}
|
}
|
||||||
if (username && *username) {
|
if (username && *username) {
|
||||||
char hostname[64];
|
char hostname[64];
|
||||||
struct membuffer mb = { 0 };
|
struct membuffer mb = {};
|
||||||
gethostname(hostname, sizeof(hostname));
|
gethostname(hostname, sizeof(hostname));
|
||||||
put_format(&mb, "%s@%s", username, hostname);
|
put_format(&mb, "%s@%s", username, hostname);
|
||||||
user->email = mb_cstring(&mb);
|
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) {
|
if (fnmatch(patterns[i], ep->d_name, 0) == 0) {
|
||||||
char filename[1024];
|
char filename[1024];
|
||||||
int n = snprintf(filename, sizeof(filename), "%s/%s", dirname, ep->d_name);
|
int n = snprintf(filename, sizeof(filename), "%s/%s", dirname, ep->d_name);
|
||||||
if (n >= sizeof(filename)) {
|
if (n >= (int)sizeof(filename)) {
|
||||||
closedir(dp);
|
closedir(dp);
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
@ -216,6 +217,7 @@ int subsurface_zip_close(struct zip *zip)
|
||||||
/* win32 console */
|
/* win32 console */
|
||||||
void subsurface_console_init(bool dedicated)
|
void subsurface_console_init(bool dedicated)
|
||||||
{
|
{
|
||||||
|
(void)dedicated;
|
||||||
/* NOP */
|
/* NOP */
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue