Bug 236728

Summary: databases/postgis25: fix build with GCC-based architectures
Product: Ports & Packages Reporter: Piotr Kubaj <pkubaj>
Component: Individual Port(s)Assignee: Mark Linimon <linimon>
Status: Closed FIXED    
Severity: Affects Only Me CC: lbartoletti, linimon
Priority: --- Flags: lbartoletti: maintainer-feedback+
Version: Latest   
Hardware: Any   
OS: Any   
Attachments:
Description Flags
patch none

Description Piotr Kubaj freebsd_committer freebsd_triage 2019-03-23 04:40:56 UTC
Created attachment 203060 [details]
patch

Remove #pragma GCC diagnostic from postgis/lwgeom_functions_basic.c and postgis/lwgeom_geos.c to fix build with base GCC.

Tested on powerpc64 and amd64.

Hardware sponsored by IntegriCloud.
Comment 1 Loïc Bartoletti freebsd_committer freebsd_triage 2019-03-28 19:08:01 UTC
Thanks.
Comment 2 commit-hook freebsd_committer freebsd_triage 2019-03-29 14:42:00 UTC
A commit references this bug:

Author: linimon
Date: Fri Mar 29 14:41:55 UTC 2019
New revision: 497146
URL: https://svnweb.freebsd.org/changeset/ports/497146

Log:
  Fix build on gcc-based architectures:

    lwgeom_functions_basic.c:1566: error: #pragma GCC diagnostic not allowed inside functions

  PR:		236728
  Submitted by:	Piotr Kubaj
  Approved by:	maintainer

Changes:
  head/databases/postgis25/Makefile