]> git.pld-linux.org Git - packages/libgsf.git/commitdiff
- Declare "values" as static, as the second argument to g_enum_register_static
authorMarcin Banasiak <marcin.banasiak@gmail.com>
Sat, 14 Mar 2009 16:38:25 +0000 (16:38 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
  may not be stack-allocated, because GObject keeps a reference to the data.
  This fixes a problem generating the documentation in some environments;
  see http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39015 . Patch from upstream.

Changed files:
    libgsf-build.patch -> 1.1

libgsf-build.patch [new file with mode: 0644]

diff --git a/libgsf-build.patch b/libgsf-build.patch
new file mode 100644 (file)
index 0000000..f6eb8a7
--- /dev/null
@@ -0,0 +1,11 @@
+--- trunk/gsf/gsf-output-csv.c 2009/01/26 18:47:59     1038
++++ trunk/gsf/gsf-output-csv.c 2009/01/30 16:21:08     1039
+@@ -182,7 +182,7 @@
+       static GType gsf_output_csv_quoting_mode_type = 0;
+       if (gsf_output_csv_quoting_mode_type == 0) {
+-              GEnumValue const values[] = {
++              static GEnumValue const values[] = {
+               { GSF_OUTPUT_CSV_QUOTING_MODE_NEVER,  (char *)"GSF_OUTPUT_CSV_QUOTING_MODE_NEVER",  (char *)"never" },
+               { GSF_OUTPUT_CSV_QUOTING_MODE_AUTO,   (char *)"GSF_OUTPUT_CSV_QUOTING_MODE_AUTO",   (char *)"auto" },
+               { GSF_OUTPUT_CSV_QUOTING_MODE_ALWAYS, (char *)"GSF_OUTPUT_CSV_QUOTING_MODE_ALWAYS", (char *)"always" },
This page took 0.099364 seconds and 4 git commands to generate.