@b4n commented on this pull request.


> @@ -38,6 +38,10 @@
 #include <glib.h>
 #include <glib/gprintf.h>
 
+#ifndef G_GNUC_FALLTHROUGH
+# define G_GNUC_FALLTHROUGH  /* GLib < 2.60 */
+#endif

I meant what you mentioned in 
https://github.com/geany/geany-plugins/pull/1476#issuecomment-3063207264 
(although I didn't see that one, so that you were maybe giving up on it).

My point is just that: if you don't want to get a warning when setting 
`-DGLIB_VERSION_MAX_ALLOWED=GLIB_VERSION_2_56` you probably need to:
```c
#undef G_GNUC_FALLTHROUGH
#define G_GNUC_FALLTHROUGH /* Fallthrough */
```

but then GCC might emit the implicit fallthrough warnings.

-- 
Reply to this email directly or view it on GitHub:
https://github.com/geany/geany-plugins/pull/1479#discussion_r2201808237
You are receiving this because you are subscribed to this thread.

Message ID: <geany/geany-plugins/pull/1479/review/[email protected]>

Reply via email to