1 # --- T2-COPYRIGHT-NOTE-BEGIN ---
2 # T2 SDE: package/*/groff/hotfix.patch.avr32
3 # Copyright (C) 2024 The T2 SDE Project
5 # This Copyright note is generated by scripts/Create-CopyPatch,
6 # more information can be found in the files COPYING and README.
8 # This patch file is dual-licensed. It is available under the license the
9 # patched project is licensed under, as long as it is an OpenSource license
10 # as defined at http://www.opensource.org/ (e.g. BSD, X11) or under the terms
11 # of the GNU General Public License version 2 as used by the T2 SDE.
12 # --- T2-COPYRIGHT-NOTE-END ---
14 --- groff-1.23.0/src/preproc/eqn/delim.cpp.vanilla 2023-11-30 11:35:24.639264033 +0100
15 +++ groff-1.23.0/src/preproc/eqn/delim.cpp 2023-11-30 11:35:48.900265599 +0100
18 // The format string in the sprintf below comes from a struct
19 // initializer above, and is not subject to external influence.
20 -#pragma GCC diagnostic push
21 -#pragma GCC diagnostic ignored "-Wformat-nonliteral"
22 +//#pragma GCC diagnostic push
23 +//#pragma GCC diagnostic ignored "-Wformat-nonliteral"
24 sprintf(buf, d->chain_format, "\\\\n[" INDEX_REG "]");
25 -#pragma GCC diagnostic pop
26 +//#pragma GCC diagnostic pop
27 printf(".nr " INDEX_REG " 0\n"
28 ".de " TEMP_MACRO "\n"
30 --- groff-1.23.0/src/preproc/pic/pic.ypp.vanilla 2023-11-30 11:36:03.153266518 +0100
31 +++ groff-1.23.0/src/preproc/pic/pic.ypp 2023-11-30 11:36:12.394267114 +0100
32 @@ -1934,11 +1934,11 @@
34 // We validated the format string above. Most conversion specifiers are
35 // rejected, including `n`.
36 -#pragma GCC diagnostic push
37 -#pragma GCC diagnostic ignored "-Wformat-nonliteral"
38 +//#pragma GCC diagnostic push
39 +//#pragma GCC diagnostic ignored "-Wformat-nonliteral"
40 snprintf(sprintf_buf, sizeof(sprintf_buf),
41 one_format.contents(), v[i++]);
42 -#pragma GCC diagnostic pop
43 +//#pragma GCC diagnostic pop
46 result += sprintf_buf;
47 --- groff-1.23.0/src/include/lib.h.vanilla 2023-11-30 11:37:17.085271288 +0100
48 +++ groff-1.23.0/src/include/lib.h 2023-11-30 11:37:26.018271864 +0100
51 extern char invalid_char_table[];
53 - inline bool is_invalid_input_char(int c)
54 + static inline bool is_invalid_input_char(int c)
56 return (c >= 0 && invalid_char_table[c]);