From 765c6134f3d47edac98818015ab6a1cbd1aa8d06 Mon Sep 17 00:00:00 2001 From: Mark Harris Date: Thu, 26 Feb 2015 18:13:58 -0800 Subject: [PATCH] Remove pure attribute from functions with side effects Fixes missing version number in sox --version using clang -O2. --- src/sox.h | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/sox.h b/src/sox.h index 155742e..6b4dbee 100644 --- a/src/sox.h +++ b/src/sox.h @@ -1646,7 +1646,7 @@ Client API: Returns version number string of libSoX, for example, "14.4.0". @returns The version number string of libSoX, for example, "14.4.0". */ -LSX_RETURN_VALID_Z LSX_RETURN_PURE +LSX_RETURN_VALID_Z char const * LSX_API sox_version(void); @@ -1656,7 +1656,7 @@ Client API: Returns information about this build of libsox. @returns Pointer to a version information structure. */ -LSX_RETURN_VALID LSX_RETURN_PURE +LSX_RETURN_VALID sox_version_info_t const * LSX_API sox_version_info(void); @@ -2422,7 +2422,6 @@ error message if the argument is not found in the set of names. @returns The enumeration value corresponding to the matching enumeration, or INT_MAX if the argument does not match any enumeration name. */ -LSX_RETURN_PURE int LSX_API lsx_enum_option( -- 2.3.0