From 158b23cfce0efa6d553f0b0a11e06fa179b0a0c2 Mon Sep 17 00:00:00 2001 From: Michael Davidsaver Date: Tue, 18 Jul 2017 15:34:53 +0200 Subject: [PATCH] __attribute__ error added in gcc 4.3 --- src/client/pv/pvAccess.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/client/pv/pvAccess.h b/src/client/pv/pvAccess.h index de597db..5e2630c 100644 --- a/src/client/pv/pvAccess.h +++ b/src/client/pv/pvAccess.h @@ -1370,7 +1370,7 @@ private: * These functions have been removed as a signal that the shared_ptr ownership symantics of ChannelProvider * and friends has changed. */ -#ifdef __GNUC__ +#if __GNUC__>4 || (__GNUC__==4&&__GNUC_MINOR__>=3) #define gCPRMSG __attribute__((error("ChannelProvider shared_ptr ownership rules have changed.")))