Skip to content

Commit 20d4e5d

Browse files
committed
Fix -Wunused-function
1 parent ccdcac3 commit 20d4e5d

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/binfmt-bypass/logging.h

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
#error component name undefined
1111
#endif
1212

13-
static int v_log_message(const char* const format, va_list args) {
13+
inline static int v_log_message(const char* const format, va_list args) {
1414
static const char prefix[] = "[appimagelauncher-binfmt-bypass/" COMPONENT_NAME "] ";
1515

1616
char* patched_format = (char*) (malloc(strlen(format) + strlen(prefix) + 1));
@@ -20,7 +20,7 @@ static int v_log_message(const char* const format, va_list args) {
2020
return vfprintf(stderr, patched_format, args);
2121
}
2222

23-
static int v_log_message_prefix(const char* const prefix, const char* const format, va_list args) {
23+
inline static int v_log_message_prefix(const char* const prefix, const char* const format, va_list args) {
2424
char* patched_format = (char*) (malloc(strlen(format) + strlen(prefix) + 2 + 1));
2525
strcpy(patched_format, prefix);
2626
strcat(patched_format, ": ");
@@ -29,7 +29,7 @@ static int v_log_message_prefix(const char* const prefix, const char* const form
2929
return v_log_message(patched_format, args);
3030
}
3131

32-
static int log_message(const char* const format, ...) {
32+
inline static int log_message(const char* const format, ...) {
3333
va_list args;
3434
va_start(args, format);
3535

@@ -40,7 +40,7 @@ static int log_message(const char* const format, ...) {
4040
return result;
4141
}
4242

43-
static void log_debug(const char* const format, ...) {
43+
inline static void log_debug(const char* const format, ...) {
4444
if (getenv("DEBUG") == NULL) {
4545
return;
4646
}
@@ -53,7 +53,7 @@ static void log_debug(const char* const format, ...) {
5353
va_end(args);
5454
}
5555

56-
static void log_error(const char* const format, ...) {
56+
inline static void log_error(const char* const format, ...) {
5757
va_list args;
5858
va_start(args, format);
5959

@@ -63,7 +63,7 @@ static void log_error(const char* const format, ...) {
6363
}
6464

6565

66-
static void log_warning(const char* const format, ...) {
66+
inline static void log_warning(const char* const format, ...) {
6767
va_list args;
6868
va_start(args, format);
6969

0 commit comments

Comments
 (0)