• Sébastien Wilmet's avatar
    Version macros: silence a compilation warning when MINOR_VERSION == 0 · b3dffc39
    Sébastien Wilmet authored
    The warning was:
    In file included from gtksourceversion.c:25:0:
    gtksourceversion.c: In function ‘gtk_source_check_version’:
    gtksourceversion.h:77:67: warning: comparison of unsigned expression < 0 is always false [-Wtype-limits]
      (GTK_SOURCE_MAJOR_VERSION == (major) && GTK_SOURCE_MINOR_VERSION > (minor)) || \
    gtksourceversion.c:117:9: note: in expansion of macro ‘GTK_SOURCE_CHECK_VERSION’
      return GTK_SOURCE_CHECK_VERSION (major, minor, micro);
    Because gtk_source_check_version() takes guint args.