From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 22C47158020 for ; Wed, 21 Dec 2022 23:52:16 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id D6A0DE0876; Wed, 21 Dec 2022 23:52:14 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id B6071E0876 for ; Wed, 21 Dec 2022 23:52:14 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id A702B340FCC for ; Wed, 21 Dec 2022 23:52:13 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 13A6F7D3 for ; Wed, 21 Dec 2022 23:52:12 +0000 (UTC) From: "Sam James" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Sam James" Message-ID: <1671666720.1b67509015dbe51f15a0c7d3f4c316826dc927de.sam@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: media-libs/gegl/, media-libs/gegl/files/ X-VCS-Repository: repo/gentoo X-VCS-Files: media-libs/gegl/files/gegl-0.4.40-strict-prototypes.patch media-libs/gegl/gegl-0.4.40-r1.ebuild X-VCS-Directories: media-libs/gegl/files/ media-libs/gegl/ X-VCS-Committer: sam X-VCS-Committer-Name: Sam James X-VCS-Revision: 1b67509015dbe51f15a0c7d3f4c316826dc927de X-VCS-Branch: master Date: Wed, 21 Dec 2022 23:52:12 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 6ffb80dd-ba6d-40d4-8ec1-cac74894b45b X-Archives-Hash: 325a134dd4f1ed49253d28627fa9645b commit: 1b67509015dbe51f15a0c7d3f4c316826dc927de Author: Sam James gentoo org> AuthorDate: Wed Dec 21 23:46:58 2022 +0000 Commit: Sam James gentoo org> CommitDate: Wed Dec 21 23:52:00 2022 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1b675090 media-libs/gegl: fix -Wstrict-prototypes Signed-off-by: Carlos Eduardo gmail.com> Closes: https://bugs.gentoo.org/883313 Signed-off-by: Sam James gentoo.org> .../gegl/files/gegl-0.4.40-strict-prototypes.patch | 79 ++++++++++++++++++++++ media-libs/gegl/gegl-0.4.40-r1.ebuild | 4 ++ 2 files changed, 83 insertions(+) diff --git a/media-libs/gegl/files/gegl-0.4.40-strict-prototypes.patch b/media-libs/gegl/files/gegl-0.4.40-strict-prototypes.patch new file mode 100644 index 000000000000..6982afa4d7b0 --- /dev/null +++ b/media-libs/gegl/files/gegl-0.4.40-strict-prototypes.patch @@ -0,0 +1,79 @@ +https://bugs.gentoo.org/883313 +https://gitlab.gnome.org/GNOME/gegl/-/merge_requests/132 +--- a/gegl/graph/gegl-region-generic.c ++++ b/gegl/graph/gegl-region-generic.c +@@ -910,7 +910,7 @@ miRegionOp (GeglRegion *newReg, + top = MAX (r1->y1, ybot); + bot = MIN (r1->y2, r2->y1); + +- if ((top != bot) && (nonOverlap1Fn != (void (*)())NULL)) ++ if ((top != bot) && (nonOverlap1Fn != (void (*)(void))NULL)) + { + (*nonOverlap1Fn)(newReg, r1, r1BandEnd, top, bot); + } +@@ -922,7 +922,7 @@ miRegionOp (GeglRegion *newReg, + top = MAX (r2->y1, ybot); + bot = MIN (r2->y2, r1->y1); + +- if ((top != bot) && (nonOverlap2Fn != (void (*)())NULL)) ++ if ((top != bot) && (nonOverlap2Fn != (void (*)(void))NULL)) + { + (*nonOverlap2Fn)(newReg, r2, r2BandEnd, top, bot); + } +--- a/operations/common/ctx/ctx.h ++++ b/operations/common/ctx/ctx.h +@@ -6047,7 +6047,6 @@ int _ctx_is_rasterizer (Ctx *ctx); + + int ctx_color (Ctx *ctx, const char *string); + typedef struct _CtxState CtxState; +-CtxColor *ctx_color_new (); + CtxState *ctx_get_state (Ctx *ctx); + void ctx_color_get_rgba (CtxState *state, CtxColor *color, float *out); + void ctx_color_set_rgba (CtxState *state, CtxColor *color, float r, float g, float b, float a); +@@ -11081,7 +11080,6 @@ static void + ctx_matrix_set (CtxMatrix *matrix, float a, float b, float c, float d, float e, float f, float g, float h, float i); + + +-static void ctx_font_setup (); + static float ctx_state_get (CtxState *state, uint32_t hash); + + #if CTX_RASTERIZER +@@ -40708,9 +40706,9 @@ static void ctx_events_deinit (Ctx *ctx) + #if CTX_TERMINAL_EVENTS + + +-static int mice_has_event (); +-static char *mice_get_event (); +-static void mice_destroy (); ++static int mice_has_event (void); ++static char *mice_get_event (void); ++static void mice_destroy (void); + static int mice_get_fd (EvSource *ev_source); + static void mice_set_coord (EvSource *ev_source, double x, double y); + +@@ -40759,13 +40757,13 @@ static int mmm_evsource_mice_init () + return 0; + } + +-static void mice_destroy () ++static void mice_destroy (void) + { + if (mrg_mice_this->fd != -1) + close (mrg_mice_this->fd); + } + +-static int mice_has_event () ++static int mice_has_event (void) + { + struct timeval tv; + int retval; +@@ -40783,7 +40781,7 @@ static int mice_has_event () + return 0; + } + +-static char *mice_get_event () ++static char *mice_get_event (void) + { + const char *ret = "pm"; + double relx, rely; + diff --git a/media-libs/gegl/gegl-0.4.40-r1.ebuild b/media-libs/gegl/gegl-0.4.40-r1.ebuild index a99b95054c29..bcb10baa5cb6 100644 --- a/media-libs/gegl/gegl-0.4.40-r1.ebuild +++ b/media-libs/gegl/gegl-0.4.40-r1.ebuild @@ -76,6 +76,10 @@ BDEPEND=" DOCS=( AUTHORS docs/ChangeLog docs/NEWS.adoc ) +PATCHES=( + "${FILESDIR}"/${PN}-0.4.40-strict-prototypes.patch +) + pkg_pretend() { [[ ${MERGE_TYPE} != binary ]] && use openmp && tc-check-openmp }