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.

101 lines
3.1 KiB

  1. # --- SDE-COPYRIGHT-NOTE-BEGIN ---
  2. # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
  3. #
  4. # Filename: package/.../altermime/fix-unused-but-set-variables.patch
  5. # Copyright (C) 2013 The OpenSDE 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. Description: Fix compiler warnings for 'unused-but-set-variable' causing FTBFS with -Werror and GCC 4.6
  17. Author: Julien Valroff <julien@debian.org>
  18. Bug-Debian: http://bugs.debian.org/625307
  19. --- ./MIME_headers.c
  20. +++ ./MIME_headers.c
  21. @@ -1081,12 +1081,10 @@
  22. int linesize=0;
  23. int totalsize_original=0;
  24. int result = 0;
  25. - int firstline = 1;
  26. int search_count=0;
  27. char *tmp;
  28. char *tmp_original;
  29. char *fget_result = NULL;
  30. - char *headerline_end;
  31. char *p;
  32. char *linestart;
  33. char *lineend;
  34. @@ -1184,7 +1182,6 @@
  35. glb.headerline = tmp;
  36. totalsize = linesize;
  37. PLD_strncpy(glb.headerline, linestart, (linesize +1));
  38. - headerline_end = glb.headerline +totalsize;
  39. } // If the global headerline is currently NULL
  40. else
  41. {
  42. @@ -1271,7 +1268,6 @@
  43. FFGET_SDL_MODE = 0;
  44. } // FFGET_doubleCR test
  45. - firstline = 0;
  46. } // While reading more headers from the source file.
  47. @@ -2724,13 +2720,13 @@
  48. {
  49. /** scan through our headers string looking for information that is
  50. ** valid **/
  51. - char *safeh, *h, *safehl;
  52. + char *h, *safehl;
  53. char *current_header_position;
  54. int headerlength;
  55. if (MIMEH_DNORMAL) LOGGER_log("%s:%d:MIMEH_parse_headers:DEBUG: Start [hinfo=%p]\n",FL, hinfo);
  56. - safeh = h = headers;
  57. + h = headers;
  58. /** Duplicate the headers for processing - this way we don't 'taint' the
  59. ** original headers during our searching / altering. **/
  60. --- ./mime_alter.c
  61. +++ ./mime_alter.c
  62. @@ -2432,7 +2432,6 @@
  63. char mpackold[AM_1K_BUFFER_SIZE+1]="";
  64. struct AM_disclaimer_details dd;
  65. int result = 0;
  66. - int segment_read = 0;
  67. /* create our temp filename */
  68. snprintf(mpacktmp,AM_1K_BUFFER_SIZE, "%s.tmp",mpackname);
  69. @@ -2623,7 +2622,6 @@
  70. */
  71. - segment_read = 0;
  72. if (FFGET_feof(&f)) break;
  73. // If we've found a boundary and a text content section...
  74. @@ -3698,7 +3696,6 @@
  75. int AM_attachment_replace_recurse( struct MIMEH_header_info *hinfo, FFGET_FILE *f, FILE *outputfile, regex_t *preg, char *new_attachment_name, int iteration )
  76. {
  77. int result = 0;
  78. - int boundary_exists=0;
  79. size_t bc;
  80. if (AM_DNORMAL) LOGGER_log("%s:%d:AM_attachment_replace_recurse:DEBUG: Starting: iteration=%d",FL, iteration );
  81. @@ -3776,7 +3773,6 @@
  82. {
  83. if (AM_DNORMAL)LOGGER_log("%s:%d:AM_attachment_replace_recurse:DEBUG: pushing BS='%s'",FL, hinfo->boundary );
  84. BS_push( hinfo->boundary );
  85. - boundary_exists = 1;
  86. }
  87. // Now, determine if this block/segment is the one which contains our file which we must 'nullify'