]> Savannah Git Hosting - gnulib.git/commitdiff
getlocalename_l-unsafe: Disable unwanted compiler optimization.
authorBruno Haible <bruno@clisp.org>
Thu, 24 Apr 2025 18:02:12 +0000 (20:02 +0200)
committerBruno Haible <bruno@clisp.org>
Thu, 24 Apr 2025 18:02:44 +0000 (20:02 +0200)
* lib/getlocalename_l-unsafe.c (_GL_ARG_NONNULL): Define to empty.

ChangeLog
lib/getlocalename_l-unsafe.c

index 26d9817c5916dc2ad31fcaffabeea09e117eacce..018e9f8e6c055ac9efe85cdf81bd7c274372ffe9 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2025-04-24  Bruno Haible  <bruno@clisp.org>
+
+       getlocalename_l-unsafe: Disable unwanted compiler optimization.
+       * lib/getlocalename_l-unsafe.c (_GL_ARG_NONNULL): Define to empty.
+
 2025-04-23  Collin Funk  <collin.funk1@gmail.com>
 
        tsearch tests: Disable tfind signature check on Cygwin.
index 6a72c81192162761169a6ddf45cc3d90ee62f8c3..cb7ae5e5eac55c7172012a1d98f31c39d652a162 100644 (file)
    You should have received a copy of the GNU Lesser General Public License
    along with this program.  If not, see <https://www.gnu.org/licenses/>.  */
 
+/* Don't use __attribute__ __nonnull__ in this compilation unit.  Otherwise gcc
+   optimizes away the locale == NULL tests below.  */
+#define _GL_ARG_NONNULL(params)
+
 #include <config.h>
 
 /* Specification.  */