OpenSDE Packages Database (without history before r20070)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

64 lines
2.9 KiB

  1. # --- SDE-COPYRIGHT-NOTE-BEGIN ---
  2. # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
  3. #
  4. # Filename: package/.../glib12/gcc34.patch
  5. # Copyright (C) 2004 - 2006 The T2 SDE Project
  6. #
  7. # More information can be found in the files COPYING and README.
  8. #
  9. # This patch file is dual-licensed. It is available under the license the
  10. # patched project is licensed under, as long as it is an OpenSource license
  11. # as defined at http://www.opensource.org/ (e.g. BSD, X11) or under the terms
  12. # of the GNU General Public License as published by the Free Software
  13. # Foundation; either version 2 of the License, or (at your option) any later
  14. # version.
  15. # --- SDE-COPYRIGHT-NOTE-END ---
  16. The usual gcc-3.4 fixes.
  17. - Rene Rebe <rene@exactcode.de>
  18. diff -ur glib-1.2.10-orig/gstrfuncs.c glib-1.2.10/gstrfuncs.c
  19. --- glib-1.2.10-orig/gstrfuncs.c 2001-02-27 07:00:22.000000000 +0100
  20. +++ glib-1.2.10/gstrfuncs.c 2004-05-04 16:05:28.000000000 +0200
  21. @@ -867,8 +867,7 @@
  22. /* beware of positional parameters
  23. */
  24. case '$':
  25. - g_warning (G_GNUC_PRETTY_FUNCTION
  26. - "(): unable to handle positional parameters (%%n$)");
  27. + g_warning ("%s(): unable to handle positional parameters (%%n$), G_GNUC_PRETTY_FUNCTION");
  28. len += 1024; /* try adding some safety padding */
  29. break;
  30. @@ -1034,8 +1033,7 @@
  31. /* n . dddddddddddddddddddddddd E +- eeee */
  32. conv_len += 1 + 1 + MAX (24, spec.precision) + 1 + 1 + 4;
  33. if (spec.mod_extra_long)
  34. - g_warning (G_GNUC_PRETTY_FUNCTION
  35. - "(): unable to handle long double, collecting double only");
  36. + g_warning ("%s(): unable to handle long double, collecting double only", G_GNUC_PRETTY_FUNCTION);
  37. #ifdef HAVE_LONG_DOUBLE
  38. #error need to implement special handling for long double
  39. #endif
  40. @@ -1077,8 +1075,7 @@
  41. conv_done = TRUE;
  42. if (spec.mod_long)
  43. {
  44. - g_warning (G_GNUC_PRETTY_FUNCTION
  45. - "(): unable to handle wide char strings");
  46. + g_warning ("%s(): unable to handle wide char strings", G_GNUC_PRETTY_FUNCTION);
  47. len += 1024; /* try adding some safety padding */
  48. }
  49. break;
  50. @@ -1108,8 +1105,8 @@
  51. conv_len += format - spec_start;
  52. break;
  53. default:
  54. - g_warning (G_GNUC_PRETTY_FUNCTION
  55. - "(): unable to handle `%c' while parsing format",
  56. + g_warning ("%s(): unable to handle `%c' while parsing format",
  57. + G_GNUC_PRETTY_FUNCTION,
  58. c);
  59. break;
  60. }