From: <re...@us...> - 2010-03-29 17:32:20
|
Revision: 33841 http://crystal.svn.sourceforge.net/crystal/?rev=33841&view=rev Author: res2002 Date: 2010-03-29 17:32:14 +0000 (Mon, 29 Mar 2010) Log Message: ----------- Patch from RlyDontKnow to only enable deprecation warnings on newer GCCs (reportedly trigger warning themselves on older 4.x GCCs...) Modified Paths: -------------- CS/trunk/include/cssysdef.h Modified: CS/trunk/include/cssysdef.h =================================================================== --- CS/trunk/include/cssysdef.h 2010-03-28 03:14:03 UTC (rev 33840) +++ CS/trunk/include/cssysdef.h 2010-03-29 17:32:14 UTC (rev 33841) @@ -1160,7 +1160,7 @@ * Enable deprecation warnings in following statements. Suitable for use in * macros. */ -#if defined(CS_COMPILER_GCC) +#if defined(CS_COMPILER_GCC) && (__GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ > 1)) # define CS_DEPRECATION_WARNINGS_DISABLE \ _Pragma("GCC diagnostic ignored \"-Wdeprecated-declarations\"") # define CS_DEPRECATION_WARNINGS_ENABLE \ This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |