Skip to content

Commit

Permalink
Merge pull request #11899 from rouault/empty_GDAL_RELEASE_NICKNAME
Browse files Browse the repository at this point in the history
Set an empty GDAL_RELEASE_NICKNAME by default
  • Loading branch information
rouault authored Mar 4, 2025
2 parents d936ae0 + c135ad2 commit 38d330e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
4 changes: 2 additions & 2 deletions gcore/gdal_misc.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2837,7 +2837,7 @@ int CPL_STDCALL GDALWriteWorldFile(const char *pszBaseFilename,
* string. i.e. "20230312".</li>
* <li> "RELEASE_NAME": Returns the GDAL_RELEASE_NAME. ie. "3.6.3"</li>
* <li> "RELEASE_NICKNAME": (>= 3.11) Returns the GDAL_RELEASE_NICKNAME.
* i.e. "Trans rights are human rights"</li>
* (may be empty)</li>
* <li> "--version": Returns one line version message suitable for
* use in response to --version requests. i.e. "GDAL 3.6.3, released
* 2023/03/12"</li>
Expand Down Expand Up @@ -3002,7 +3002,7 @@ const char *CPL_STDCALL GDALVersionInfo(const char *pszRequest)
else if (EQUAL(pszRequest, "RELEASE_NAME"))
osVersionInfo.Printf(GDAL_RELEASE_NAME);
else if (EQUAL(pszRequest, "RELEASE_NICKNAME"))
osVersionInfo.Printf(GDAL_RELEASE_NICKNAME);
osVersionInfo.Printf("%s", GDAL_RELEASE_NICKNAME);
else // --version
{
osVersionInfo.Printf(
Expand Down
4 changes: 3 additions & 1 deletion gcore/gdal_version.h.in
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@
# define GDAL_RELEASE_NAME "3.11.0dev"
#endif

#define GDAL_RELEASE_NICKNAME "Trans rights are human rights"
#ifndef GDAL_RELEASE_NICKNAME
#define GDAL_RELEASE_NICKNAME ""
#endif

#endif

0 comments on commit 38d330e

Please sign in to comment.