Skip to content

Commit

Permalink
fix compilation error on Windows caused by https://trac.osgeo.org/gra…
Browse files Browse the repository at this point in the history
…ss/changeset/73982

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@73998 15284696-431f-4ddb-bdfa-cd5b030d7da7
  • Loading branch information
landam committed Jan 22, 2019
1 parent 7cf397a commit 40a9da4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions include/gis.h
Original file line number Diff line number Diff line change
Expand Up @@ -68,10 +68,10 @@ static const char *GRASS_copyright __attribute__ ((unused))
#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

/*!
Expand Down

0 comments on commit 40a9da4

Please sign in to comment.