]> git.ipfire.org Git - thirdparty/gettext.git/commitdiff
Refactor: Allow for better static analysis, fixing some GCC analyzer warnings.
authorBruno Haible <bruno@clisp.org>
Sun, 9 Feb 2025 21:50:17 +0000 (22:50 +0100)
committerBruno Haible <bruno@clisp.org>
Sun, 9 Feb 2025 21:50:17 +0000 (22:50 +0100)
* gettext-tools/src/cldr-plural.y: Define SB_NO_APPENDF.
* gettext-tools/src/its.c: Likewise.
* gettext-tools/src/read-desktop.c: Likewise.
* gettext-tools/src/read-properties.c: Likewise.
* gettext-tools/src/x-awk.c: Likewise.
* gettext-tools/src/x-c.c: Likewise.
* gettext-tools/src/x-java.c: Likewise.
* gettext-tools/src/x-javascript.c: Likewise.
* gettext-tools/src/x-lua.c: Likewise.
* gettext-tools/src/x-perl.c: Likewise.
* gettext-tools/src/x-php.c: Likewise.
* gettext-tools/src/x-python.c: Likewise.
* gettext-tools/src/x-rst.c: Likewise.
* gettext-tools/src/x-smalltalk.c: Likewise.
* gettext-tools/src/x-vala.c: Likewise.
* gettext-tools/src/x-ycp.c: Likewise.

16 files changed:
gettext-tools/src/cldr-plural.y
gettext-tools/src/its.c
gettext-tools/src/read-desktop.c
gettext-tools/src/read-properties.c
gettext-tools/src/x-awk.c
gettext-tools/src/x-c.c
gettext-tools/src/x-java.c
gettext-tools/src/x-javascript.c
gettext-tools/src/x-lua.c
gettext-tools/src/x-perl.c
gettext-tools/src/x-php.c
gettext-tools/src/x-python.c
gettext-tools/src/x-rst.c
gettext-tools/src/x-smalltalk.c
gettext-tools/src/x-vala.c
gettext-tools/src/x-ycp.c

index 19c272b947d007eec9f0f6ca53a3273d05b2e6dc..a5bc4e8a024bd2cb5cea543da1579345301c5572 100644 (file)
@@ -24,6 +24,8 @@
 #include <stdio.h>
 #include <stdlib.h>
 #include <string.h>
+
+#define SB_NO_APPENDF
 #include "unistr.h"
 #include "xalloc.h"
 #include "string-buffer.h"
index 8990aee5a7fb7dd3d57ed7e2d42a6a17fcc6e0ef..4f6301dd0b605ad0fcccdea6316ffa30906b6918 100644 (file)
@@ -36,6 +36,7 @@
 #include <libxml/xpath.h>
 #include <libxml/xpathInternals.h>
 
+#define SB_NO_APPENDF
 #include <error.h>
 #include "mem-hash-map.h"
 #include "trim.h"
index 477fae15739e7ee5fb368fa0c2e07bdcaedb4ebc..27ebd0e1968eba994762505cf24e2813a5ada43f 100644 (file)
@@ -29,6 +29,7 @@
 #include <stdlib.h>
 #include <string.h>
 
+#define SB_NO_APPENDF
 #include <error.h>
 #include "xalloc.h"
 #include "xvasprintf.h"
index 116bd4481dca2a5c8a3f101314542800ed972ea4..3531065ea38110bd95fa1501a68b026b2c144916 100644 (file)
@@ -1,5 +1,5 @@
 /* Reading Java .properties files.
-   Copyright (C) 2003-2024 Free Software Foundation, Inc.
+   Copyright (C) 2003-2025 Free Software Foundation, Inc.
    Written by Bruno Haible <bruno@clisp.org>, 2003.
 
    This program is free software: you can redistribute it and/or modify
@@ -29,6 +29,7 @@
 #include <stdlib.h>
 #include <string.h>
 
+#define SB_NO_APPENDF
 #include <error.h>
 #include "message.h"
 #include "read-catalog-abstract.h"
index 23790951b99018f22f1a90ec6a0b2a9de866a20b..1a98290c897264b4276ca1785b6b6259693a7030 100644 (file)
@@ -29,6 +29,7 @@
 #include <stdlib.h>
 #include <string.h>
 
+#define SB_NO_APPENDF
 #include <error.h>
 #include "attribute.h"
 #include "message.h"
index 68030f51ab5f54005af413cada5df0dad129f123..9b53e8fc87983b647b3a66b0283dbfb280b25277 100644 (file)
@@ -30,6 +30,7 @@
 #include <stdlib.h>
 #include <string.h>
 
+#define SB_NO_APPENDF
 #include <error.h>
 #include "attribute.h"
 #include "message.h"
index 2c485325e3fa3a2841e43216d6e41389e661eeb9..f82d622542d3422801042ec3edaea3ec092dc157 100644 (file)
@@ -1,5 +1,5 @@
 /* xgettext Java backend.
-   Copyright (C) 2003-2024 Free Software Foundation, Inc.
+   Copyright (C) 2003-2025 Free Software Foundation, Inc.
    Written by Bruno Haible <bruno@clisp.org>, 2003.
 
    This program is free software: you can redistribute it and/or modify
@@ -28,6 +28,7 @@
 #include <stdlib.h>
 #include <string.h>
 
+#define SB_NO_APPENDF
 #include <error.h>
 #include "attribute.h"
 #include "message.h"
index ed1d1fbe67fe5648e115c7a38ee54dd92c93d7b7..d2b17335cb7890e8e2da319c9c5980854a7b4b2b 100644 (file)
@@ -1,5 +1,5 @@
 /* xgettext JavaScript backend.
-   Copyright (C) 2002-2024 Free Software Foundation, Inc.
+   Copyright (C) 2002-2025 Free Software Foundation, Inc.
 
    This file was written by Andreas Stricker <andy@knitter.ch>, 2010
    It's based on x-python from Bruno Haible.
@@ -31,6 +31,7 @@
 #include <stdlib.h>
 #include <string.h>
 
+#define SB_NO_APPENDF
 #include <error.h>
 #include "attribute.h"
 #include "message.h"
index dc4b0b9442c0c08927156c58a48c0f66520e6b72..aa2a492b8362227103165caaac4408147b07075f 100644 (file)
@@ -1,5 +1,5 @@
 /* xgettext Lua backend.
-   Copyright (C) 2012-2024 Free Software Foundation, Inc.
+   Copyright (C) 2012-2025 Free Software Foundation, Inc.
 
    This file was written by Ľubomír Remák <lubomirr@lubomirr.eu>, 2012.
 
@@ -28,6 +28,7 @@
 #include <stdio.h>
 #include <stdlib.h>
 
+#define SB_NO_APPENDF
 #include <error.h>
 #include "attribute.h"
 #include "message.h"
index 213f06aab44e15a7a9d42f71c961c88199111783..dd640e08fed97088f882bf8c838228f9a9e57cce 100644 (file)
@@ -29,6 +29,7 @@
 #include <stdlib.h>
 #include <string.h>
 
+#define SB_NO_APPENDF
 #include <error.h>
 #include "attribute.h"
 #include "message.h"
index 6a6797f86253f0e88e890b5d7a8cc39951337493..29fcc9f452768391018487b02195c08dd3b9b690 100644 (file)
@@ -28,6 +28,7 @@
 #include <stdio.h>
 #include <stdlib.h>
 
+#define SB_NO_APPENDF
 #include <error.h>
 #include "attribute.h"
 #include "message.h"
index 995200eb65fbadbc4813e0a7718ac291ce6a2554..e1787f288461ac4dd7cc3c6081328a3fcdc0778c 100644 (file)
@@ -1,5 +1,5 @@
 /* xgettext Python backend.
-   Copyright (C) 2002-2024 Free Software Foundation, Inc.
+   Copyright (C) 2002-2025 Free Software Foundation, Inc.
 
    This file was written by Bruno Haible <haible@clisp.cons.org>, 2002.
 
@@ -30,6 +30,7 @@
 #include <stdlib.h>
 #include <string.h>
 
+#define SB_NO_APPENDF
 #include <error.h>
 #include "attribute.h"
 #include "message.h"
index 10b958060ce93aab74682ce60b793a8052d9c4d3..def179ffae3a665dd3e55d137c04b8bfc2dc439b 100644 (file)
@@ -29,6 +29,7 @@
 #include <stddef.h>
 #include <stdlib.h>
 
+#define SB_NO_APPENDF
 #include <error.h>
 #include "c-ctype.h"
 #include "po-charset.h"
index eabd70d6617509d055ebf8b51845f12e1fde1ad7..5b3a3fa8b7167d06bfd6f8d67e4d3cdb2a5526e3 100644 (file)
@@ -1,5 +1,5 @@
 /* xgettext Smalltalk backend.
-   Copyright (C) 2002-2024 Free Software Foundation, Inc.
+   Copyright (C) 2002-2025 Free Software Foundation, Inc.
 
    This file was written by Bruno Haible <haible@clisp.cons.org>, 2002.
 
@@ -27,6 +27,7 @@
 #include <stdio.h>
 #include <stdlib.h>
 
+#define SB_NO_APPENDF
 #include <error.h>
 #include "attribute.h"
 #include "message.h"
index 5ff487f67cbdc47ec438a9d60dc933daa7cd0201..be97b6772b858fae5397fe279c29e114d7855f38 100644 (file)
@@ -1,5 +1,5 @@
 /* xgettext Vala backend.
-   Copyright (C) 2013-2024 Free Software Foundation, Inc.
+   Copyright (C) 2013-2025 Free Software Foundation, Inc.
 
    This file was written by Daiki Ueno <ueno@gnu.org>, 2013.
 
@@ -30,6 +30,7 @@
 #include <stdlib.h>
 #include <string.h>
 
+#define SB_NO_APPENDF
 #include <error.h>
 #include "attribute.h"
 #include "message.h"
index 25a1336e57fb171bc29708ef6deca5f5793e4790..6ef2749ddebfa24fba0daf32e3e792d3de2a5472 100644 (file)
@@ -29,6 +29,7 @@
 #include <stdio.h>
 #include <stdlib.h>
 
+#define SB_NO_APPENDF
 #include <error.h>
 #include "attribute.h"
 #include "message.h"