1
0
Fork 0
mirror of https://gitlab.alpinelinux.org/alpine/aports.git synced 2025-07-16 12:45:18 +03:00
aports/testing/rofi-blocks/fix-format-long-int.patch
2022-02-01 19:25:39 +01:00

35 lines
1.6 KiB
Diff

Patch-Source: https://github.com/OmarCastro/rofi-blocks/pull/29
--
From 260638614cbe42c06d9ebb651953d6dacf7bab8d Mon Sep 17 00:00:00 2001
From: Jakub Jirutka <jakub@jirutka.cz>
Date: Tue, 1 Feb 2022 19:21:45 +0100
Subject: [PATCH] fix: Fix format string in blocks.c - use %li instead of %i
blocks.c:224:21: warning: format '%i' expects argument of type 'int', but argument 4 has type 'gint64' {aka 'long int'} [-Wformat=]
224 | g_debug("entry_to_focus %i", entry_to_focus);
| ^~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~
| |
| gint64 {aka long int}
blocks.c:224:38: note: format string is defined here
224 | g_debug("entry_to_focus %i", entry_to_focus);
| ~^
| |
| int
| %li
---
src/blocks.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/blocks.c b/src/blocks.c
index 0fbca76..99274b1 100644
--- a/src/blocks.c
+++ b/src/blocks.c
@@ -221,7 +221,7 @@ static gboolean on_new_input ( GIOChannel *source, GIOCondition condition, gpoin
if(willFocusToEntry){
RofiViewState * rofiViewState = rofi_view_get_active();
- g_debug("entry_to_focus %i", entry_to_focus);
+ g_debug("entry_to_focus %li", entry_to_focus);
rofi_view_set_selected_line(rofiViewState, (unsigned int) entry_to_focus);
}