@eht16 commented on this pull request.


In incdec/src/incdec-plugin.c:

> +
+		/* when the number changes sign, the format is reset to avoid a display shift */
+		if ((positive == FALSE && guessed_number >= 0) || (positive == TRUE && guessed_number < 0))
+		{
+			format_length = 0;
+		}
+		else
+		{
+			format_length = digit_end - digit_start;
+			if (format_length > 12)
+				format_length = 0;
+		}
+
+		g_snprintf(format_buf, sizeof(format_buf)-1, "%%0%d%c", format_length, use_hexa ? ( hexaCase == HEXA_CASE_UPPER ? 'X' : 'x' ) : 'd');
+
+		if ((buf = g_strdup_printf(format_buf, guessed_number)))

The best I found is:

#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wformat-nonliteral"
		if ((buf = g_strdup_printf(format_buf, guessed_number)))
#pragma GCC diagnostic pop


Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.Message ID: <geany/geany-plugins/pull/1351/review/2574345806@github.com>