[Midnightbsd-cvs] [MidnightBSD/mports] 3a1b82: deskutils/growl-for-linux: fix C23 empty-parameter...

Lucas Holt noreply at github.com
Fri Jun 19 12:09:04 EDT 2026


  Branch: refs/heads/master
  Home:   https://github.com/MidnightBSD/mports
  Commit: 3a1b825560d533a5944c2b63e0bc83d17d5f5bf2
      https://github.com/MidnightBSD/mports/commit/3a1b825560d533a5944c2b63e0bc83d17d5f5bf2
  Author: Lucas Holt <luke at foolishgames.com>
  Date:   2026-06-19 (Fri, 19 Jun 2026)

  Changed paths:
    A deskutils/growl-for-linux/files/patch-gol.c

  Log Message:
  -----------
  deskutils/growl-for-linux: fix C23 empty-parameter function pointer error

C23 changed the meaning of () in function pointer declarations to mean
(void) — no parameters. The SUBSCRIBE_PLUGIN struct declared its init
pointer as gboolean (*init)(), but it is called as sp->init(&sc) with a
SUBSCRIPTOR_CONTEXT* argument, causing a "too many arguments" error
under -std=c23.

Fix by giving the pointer an explicit prototype matching the actual
plugin function signature: gboolean (*init)(SUBSCRIPTOR_CONTEXT*).

AI-Assisted-by: Claude Sonnet 4.6 <noreply at anthropic.com>
Signed-off-by: Lucas Holt <luke at foolishgames.com>



To unsubscribe from these emails, change your notification settings at https://github.com/MidnightBSD/mports/settings/notifications



More information about the Midnightbsd-cvs mailing list