gmime r1235 - in trunk: . gmime util



Author: fejj
Date: Sun May  4 04:08:40 2008
New Revision: 1235
URL: http://svn.gnome.org/viewvc/gmime?rev=1235&view=rev

Log:
fixed some compiler warnings

Modified:
   trunk/configure.in
   trunk/gmime/gmime-multipart.c
   trunk/gmime/gmime-stream-buffer.c
   trunk/gmime/gmime-utils.c
   trunk/util/url-scanner.c

Modified: trunk/configure.in
==============================================================================
--- trunk/configure.in	(original)
+++ trunk/configure.in	Sun May  4 04:08:40 2008
@@ -132,7 +132,7 @@
               AC_HELP_STRING([--enable-profiling],[enable profiling compile flags [[default=no]]]),,
               enable_profiling=no)
 if test "x$enable_profiling" = "xyes"; then
-#  CFLAGS="-O0 -g -pg -fprofile-arcs -ftest-coverage"
+# CFLAGS="-O0 -g -pg -fprofile-arcs -ftest-coverage"
   CFLAGS="-O0 -g -pg"
 fi
 
@@ -533,11 +533,11 @@
   Install prefix:       ${prefix}
   Compiler:             ${CC}
 
-  Profiling enabled:    ${enable_profile}
+  Profiling enabled:    ${enable_profiling}
 
   Large file support:   ${enable_largefile}
   rfc2047 workarounds:  ${enable_rfc2047_workarounds}
-  Warning output:       ${enable_warnings}
+  Console warnings:     ${enable_warnings}
 
   Mono bindings:        ${enable_mono}
 "

Modified: trunk/gmime/gmime-multipart.c
==============================================================================
--- trunk/gmime/gmime-multipart.c	(original)
+++ trunk/gmime/gmime-multipart.c	Sun May  4 04:08:40 2008
@@ -43,7 +43,7 @@
  * @short_description: MIME multiparts
  * @see_also:
  *
- * A #GMimeMultipart represents all multipart/* MIME container parts.
+ * A #GMimeMultipart represents all multipart MIME container parts.
  **/
 
 
@@ -245,7 +245,7 @@
 	
 	/* make sure a boundary is set unless we are writing out a raw
 	 * header (in which case it should already be set... or if
-	 * not, then it's a broken multipart/* and so we don't want to
+	 * not, then it's a broken multipart and so we don't want to
 	 * alter it or we'll completely break the output) */
 	if (!multipart->boundary && !g_mime_header_has_raw (object->headers))
 		g_mime_multipart_set_boundary (multipart, NULL);

Modified: trunk/gmime/gmime-stream-buffer.c
==============================================================================
--- trunk/gmime/gmime-stream-buffer.c	(original)
+++ trunk/gmime/gmime-stream-buffer.c	Sun May  4 04:08:40 2008
@@ -482,6 +482,9 @@
 			if (real > stream->bound_end || real < stream->bound_start)
 				return -1;
 		}
+		break;
+	default:
+		return -1;
 	}
 	
 	if (real > stream->position) {

Modified: trunk/gmime/gmime-utils.c
==============================================================================
--- trunk/gmime/gmime-utils.c	(original)
+++ trunk/gmime/gmime-utils.c	Sun May  4 04:08:40 2008
@@ -2075,7 +2075,7 @@
 		encoded[pos] = '\0';
 		
 		/* remove \n chars as headers need to be wrapped differently */
-		if (G_UNLIKELY (inptr = strchr ((char *) encoded, '\n'))) {
+		if (G_UNLIKELY ((inptr = strchr ((char *) encoded, '\n')))) {
 			outptr = inptr++;
 			while (G_LIKELY (*inptr)) {
 				if (G_LIKELY (*inptr != '\n'))

Modified: trunk/util/url-scanner.c
==============================================================================
--- trunk/util/url-scanner.c	(original)
+++ trunk/util/url-scanner.c	Sun May  4 04:08:40 2008
@@ -24,6 +24,7 @@
 #endif
 
 #include <stdio.h>
+#include <stdlib.h>
 #include <string.h>
 
 #include "gtrie.h"
@@ -377,6 +378,7 @@
 		} else if (*inptr == ':') {
 			/* IPv6 can start with a ':' */
 			end = (char *) inptr;
+			val = 256; /* invalid value */
 		} else {
 			return FALSE;
 		}



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]