[GRASS-SVN] r73998 - grass/trunk/include

svn_grass at osgeo.org svn_grass at osgeo.org
Tue Jan 22 03:04:06 PST 2019


Author: martinl
Date: 2019-01-22 03:04:06 -0800 (Tue, 22 Jan 2019)
New Revision: 73998

Modified:
   grass/trunk/include/gis.h
Log:
fix compilation error on Windows caused by r73982

Modified: grass/trunk/include/gis.h
===================================================================
--- grass/trunk/include/gis.h	2019-01-22 09:27:39 UTC (rev 73997)
+++ grass/trunk/include/gis.h	2019-01-22 11:04:06 UTC (rev 73998)
@@ -68,10 +68,10 @@
 #endif
 
 /*! \brief Generate warning if function return value is unused */
-#if __GNUC_PREREQ (3,4)
-    #define WARN_UNUSED_RESULT __attribute__ ((warn_unused_result))
+#if __GNUC__ && (__GNUC__ >= 3 && __GNUC_MINOR__ >= 4)
+#   define WARN_UNUSED_RESULT __attribute__ ((warn_unused_result))
 #else
-    #define WARN_UNUSED_RESULT
+#   define WARN_UNUSED_RESULT
 #endif
 
 /*!



More information about the grass-commit mailing list