[gtksourceview] Revert "Version macros: silence a compilation warning when MINOR_VERSION == 0"
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtksourceview] Revert "Version macros: silence a compilation warning when MINOR_VERSION == 0"
- Date: Sat, 20 Mar 2021 17:27:47 +0000 (UTC)
commit 63465ba78ea951b55dcf5fdf4557cf8fb980daad
Author: Christian Hergert <chergert redhat com>
Date: Sat Mar 20 10:26:59 2021 -0700
Revert "Version macros: silence a compilation warning when MINOR_VERSION == 0"
This reverts commit b3dffc39fa5064c49b219cb55b97f6a4070a872a.
This shouldn't be needed and causes issues when the macro is used.
Fixes #178
gtksourceview/gtksourceversion.h.in | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/gtksourceview/gtksourceversion.h.in b/gtksourceview/gtksourceversion.h.in
index 5c13fb80..83f946f4 100644
--- a/gtksourceview/gtksourceversion.h.in
+++ b/gtksourceview/gtksourceversion.h.in
@@ -73,7 +73,7 @@ G_BEGIN_DECLS
*/
#define GTK_SOURCE_CHECK_VERSION(major, minor, micro) \
(GTK_SOURCE_MAJOR_VERSION > (major) || \
- (GTK_SOURCE_MAJOR_VERSION == (major) && GTK_SOURCE_MINOR_VERSION > ((gint) (minor))) || \
+ (GTK_SOURCE_MAJOR_VERSION == (major) && GTK_SOURCE_MINOR_VERSION > (minor)) || \
(GTK_SOURCE_MAJOR_VERSION == (major) && GTK_SOURCE_MINOR_VERSION == (minor) && \
GTK_SOURCE_MICRO_VERSION >= (micro)))
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]