aboutsummaryrefslogtreecommitdiffstats
path: root/camel/camel-stream-mem.c
diff options
context:
space:
mode:
authorChristopher James Lahey <clahey@helixcode.com>2000-08-11 10:57:11 +0800
committerChris Lahey <clahey@src.gnome.org>2000-08-11 10:57:11 +0800
commit40eea3692e4afa02a9092f64c00e9348f562f68b (patch)
treea5de1982e43949eefeea75ab5a939a89690b32d4 /camel/camel-stream-mem.c
parente8ee5b65d43775708361a1094d56ae7d20fbb5e7 (diff)
downloadgsoc2013-evolution-40eea3692e4afa02a9092f64c00e9348f562f68b.tar
gsoc2013-evolution-40eea3692e4afa02a9092f64c00e9348f562f68b.tar.gz
gsoc2013-evolution-40eea3692e4afa02a9092f64c00e9348f562f68b.tar.bz2
gsoc2013-evolution-40eea3692e4afa02a9092f64c00e9348f562f68b.tar.lz
gsoc2013-evolution-40eea3692e4afa02a9092f64c00e9348f562f68b.tar.xz
gsoc2013-evolution-40eea3692e4afa02a9092f64c00e9348f562f68b.tar.zst
gsoc2013-evolution-40eea3692e4afa02a9092f64c00e9348f562f68b.zip
Fixed some warnings.
2000-08-10 Christopher James Lahey <clahey@helixcode.com> * camel-folder-search.c, camel-folder-summary.c, camel-medium.c, camel-mime-filter-charset.c, camel-mime-filter.c, camel-mime-filter.h, camel-mime-message.c, camel-mime-parser.c, camel-mime-part-utils.c, camel-mime-part.c, camel-mime-utils.c, camel-movemail.c, camel-multipart.c, camel-object.c, camel-stream-mem.c, providers/mbox/camel-mbox-folder.c, providers/mbox/camel-mbox-summary.c, providers/mh/camel-mh-folder.c, providers/smtp/camel-smtp-transport.c: Fixed some warnings. svn path=/trunk/; revision=4719
Diffstat (limited to 'camel/camel-stream-mem.c')
-rw-r--r--camel/camel-stream-mem.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/camel/camel-stream-mem.c b/camel/camel-stream-mem.c
index f5dab54a41..77941894b7 100644
--- a/camel/camel-stream-mem.c
+++ b/camel/camel-stream-mem.c
@@ -182,7 +182,9 @@ stream_write (CamelStream *stream, const char *buffer, size_t n)
if (seekable->bound_end != CAMEL_STREAM_UNBOUND)
nwrite = MIN(seekable->bound_end - seekable->position, n);
+#ifndef NO_WARNINGS
#warning "g_byte_arrays use g_malloc and so are totally unsuitable for this object"
+#endif
if (seekable->position == stream_mem->buffer->len) {
stream_mem->buffer =
g_byte_array_append (stream_mem->buffer, (const guint8 *)buffer, nwrite);