]> git.pld-linux.org Git - packages/autogen.git/blob - autogen-format-truncate.patch
- fix building with guile 3.0, rel 3
[packages/autogen.git] / autogen-format-truncate.patch
1 --- autogen-5.18.14/getdefs/getdefs.c.orig      2017-09-11 06:52:36.000000000 +0200
2 +++ autogen-5.18.14/getdefs/getdefs.c   2018-08-02 18:46:43.118172227 +0200
3 @@ -495,7 +495,10 @@
4       *       and insert the index into the output.
5       */
6      if (pzIndexText != NULL) {
7 +#pragma GCC diagnostic push
8 +#pragma GCC diagnostic ignored "-Wformat-overflow"
9          sprintf(def_str, "  %s'", name_bf);
10 +#pragma GCC diagnostic pop
11          pzOut = assignIndex(pzOut, def_bf);
12      }
13  
14 --- autogen-5.18.14/autoopts/usage.c.orig       2017-09-11 06:52:36.000000000 +0200
15 +++ autogen-5.18.14/autoopts/usage.c    2018-08-02 21:31:30.802129316 +0200
16 @@ -787,7 +787,10 @@
17              if (l > nmlen)  nmlen = l;
18          } while (od++, (--ct > 0));
19  
20 +#pragma GCC diagnostic push
21 +#pragma GCC diagnostic ignored "-Wformat-truncation"
22          snprintf(vfmt, sizeof(vfmt), vfmtfmt, (unsigned int)nmlen + 4);
23 +#pragma GCC diagnostic pop
24      }
25  
26      if (tab_skip_ct > 0)
This page took 0.062684 seconds and 3 git commands to generate.