From d7216bce462d225ee8aaed1eeae9c47319266209 Mon Sep 17 00:00:00 2001 From: Diane Bruce Date: Fri, 28 Aug 2020 12:30:55 +0000 Subject: [PATCH] Fix under clang 11 --- comms/gpredict/Makefile | 2 +- comms/gpredict/files/patch-src_qth-data.h | 11 +++++++++++ 2 files changed, 12 insertions(+), 1 deletion(-) create mode 100644 comms/gpredict/files/patch-src_qth-data.h diff --git a/comms/gpredict/Makefile b/comms/gpredict/Makefile index a08927a50613..5f46c82d4671 100644 --- a/comms/gpredict/Makefile +++ b/comms/gpredict/Makefile @@ -3,7 +3,7 @@ PORTNAME= gpredict DISTVERSION= 2.2.1 -PORTREVISION= 1 +PORTREVISION= 2 CATEGORIES= comms hamradio MASTER_SITES= https://github.com/csete/${PORTNAME}/releases/download/v${DISTVERSION}/ diff --git a/comms/gpredict/files/patch-src_qth-data.h b/comms/gpredict/files/patch-src_qth-data.h new file mode 100644 index 000000000000..e5d1e39cbf51 --- /dev/null +++ b/comms/gpredict/files/patch-src_qth-data.h @@ -0,0 +1,11 @@ +--- src/qth-data.h.orig 2017-12-29 10:28:07 UTC ++++ src/qth-data.h +@@ -30,7 +30,7 @@ typedef struct { + gint alt; /*!< Altitude above sea level in meters. */ + } qth_small_t; + +-enum { ++static enum { + QTH_STATIC_TYPE = 0, + QTH_GPSD_TYPE + } qth_data_type;