Hi Dirk,
On 2011-06-20 Dirk Zimoch wrote:
>
> Unfortunately it seems that the Tornado 2.2 compiler (gcc-2.96, Linux
> version) does not understand __attribute__((deprecated)):
>
> warning: `deprecated' attribute directive ignored
>
> So it seems that #ifdef __GNUC__ is not enough and the GCC version needs
> to be tested. However I don't know from which version on GCC understands
> deprecated. Maybe starting with version 3 ?
I can find it in the documentation for gcc 3.1 but not in 3.0.4. I don't
think anyone's really going to be using the 3.0.x versions of GCC any more and
even if they do the result is only a warning, so I'll apply this patch:
=== modified file 'src/libCom/misc/compilerDependencies.h'
--- src/libCom/misc/compilerDependencies.h 2008-09-26 17:24:32 +0000
+++ src/libCom/misc/compilerDependencies.h 2011-06-20 18:48:47 +0000
@@ -95,7 +95,7 @@
/*
* Deprecation marker
*/
-#ifdef __GNUC__
+#if defined( __GNUC__ ) && (__GNUC__ > 2)
# define EPICS_DEPRECATED __attribute__((deprecated))
#else
# define EPICS_DEPRECATED
Thanks,
- Andrew
--
Optimization is the process of taking something that works and
replacing it with something that almost works, but costs less.
-- Roger Needham
- References:
- EPICS_DEPRECATED and gcc-2.96 Dirk Zimoch
- Navigate by Date:
- Prev:
Re: AreaDetector: Prosilica camera on different subnet? Bob Gunion
- Next:
RE: radiation damage to electronics inside accelerator tunnel? Rarback, Harvey M.
- Index:
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
<2011>
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
- Navigate by Thread:
- Prev:
EPICS_DEPRECATED and gcc-2.96 Dirk Zimoch
- Next:
Areadetector: driver for VDS Vosskuhler gigE camera? Paul Martin
- Index:
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
<2011>
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
|