mirror of
https://github.com/jtheoof/swappy.git
synced 2024-08-17 02:30:47 +03:00
chore(config): unbreak -Werror on 32-bit architectures
../src/config.c:119:11: error: format specifies type 'long' but the argument has type 'guint64' (aka 'unsigned long long') [-Werror,-Wformat] line_size); ^~~~~~~~~ /usr/local/include/glib-2.0/glib/gmessages.h:339:32: note: expanded from macro 'g_warning' __VA_ARGS__) ^~~~~~~~~~~ ../src/config.c:136:11: error: format specifies type 'long' but the argument has type 'guint64' (aka 'unsigned long long') [-Werror,-Wformat] text_size); ^~~~~~~~~ /usr/local/include/glib-2.0/glib/gmessages.h:339:32: note: expanded from macro 'g_warning' __VA_ARGS__) ^~~~~~~~~~~ 2 errors generated.
This commit is contained in:
parent
772c60523e
commit
606ce38914
13
src/config.c
13
src/config.c
@ -1,6 +1,7 @@
|
||||
#include "config.h"
|
||||
|
||||
#include <glib.h>
|
||||
#include <inttypes.h>
|
||||
#include <stdbool.h>
|
||||
#include <stdio.h>
|
||||
#include <sys/stat.h>
|
||||
@ -114,9 +115,9 @@ static void load_config_from_file(struct swappy_config *config,
|
||||
line_size <= SWAPPY_LINE_SIZE_MAX) {
|
||||
config->line_size = line_size;
|
||||
} else {
|
||||
g_warning(
|
||||
"line_size is not a valid value: %ld - see man page for details",
|
||||
line_size);
|
||||
g_warning("line_size is not a valid value: %" PRIu64
|
||||
" - see man page for details",
|
||||
line_size);
|
||||
}
|
||||
} else {
|
||||
g_info("line_size is missing in %s (%s)", file, error->message);
|
||||
@ -131,9 +132,9 @@ static void load_config_from_file(struct swappy_config *config,
|
||||
text_size <= SWAPPY_TEXT_SIZE_MAX) {
|
||||
config->text_size = text_size;
|
||||
} else {
|
||||
g_warning(
|
||||
"text_size is not a valid value: %ld - see man page for details",
|
||||
text_size);
|
||||
g_warning("text_size is not a valid value: %" PRIu64
|
||||
" - see man page for details",
|
||||
text_size);
|
||||
}
|
||||
} else {
|
||||
g_info("text_size is missing in %s (%s)", file, error->message);
|
||||
|
Loading…
Reference in New Issue
Block a user