aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDan Winship <danw@src.gnome.org>2002-09-24 06:09:29 +0800
committerDan Winship <danw@src.gnome.org>2002-09-24 06:09:29 +0800
commitccc7dbaf49012e66a2c1b344df20c8aa51c502dc (patch)
tree6b2973e94fd9577e4bf15073f589e46b143ed6a5
parent5f9b117b8a1df908b6bea6e07ada689a59636a6d (diff)
downloadgsoc2013-evolution-ccc7dbaf49012e66a2c1b344df20c8aa51c502dc.tar
gsoc2013-evolution-ccc7dbaf49012e66a2c1b344df20c8aa51c502dc.tar.gz
gsoc2013-evolution-ccc7dbaf49012e66a2c1b344df20c8aa51c502dc.tar.bz2
gsoc2013-evolution-ccc7dbaf49012e66a2c1b344df20c8aa51c502dc.tar.lz
gsoc2013-evolution-ccc7dbaf49012e66a2c1b344df20c8aa51c502dc.tar.xz
gsoc2013-evolution-ccc7dbaf49012e66a2c1b344df20c8aa51c502dc.tar.zst
gsoc2013-evolution-ccc7dbaf49012e66a2c1b344df20c8aa51c502dc.zip
Fix non-ANSI switch statement.
* mail-signature-editor.c (exit_dialog_cb): Fix non-ANSI switch statement. * mail-account-gui.c (mail_account_gui_auto_detect_extra_conf): Likewise. * mail-composer-prefs.c (spell_load_values): add some dummy typedefs to avoid empty macro arguments, which have undefined behavior. * mail-importer.c: #include <sys/types.h> for OS X svn path=/trunk/; revision=18186
-rw-r--r--mail/ChangeLog14
-rw-r--r--mail/mail-account-gui.c1
-rw-r--r--mail/mail-composer-prefs.c6
-rw-r--r--mail/mail-importer.c1
-rw-r--r--mail/mail-signature-editor.c1
5 files changed, 20 insertions, 3 deletions
diff --git a/mail/ChangeLog b/mail/ChangeLog
index 6197aa6480..cbc865c72d 100644
--- a/mail/ChangeLog
+++ b/mail/ChangeLog
@@ -1,3 +1,17 @@
+2002-09-23 Dan Winship <danw@ximian.com>
+
+ * mail-signature-editor.c (exit_dialog_cb): Fix non-ANSI switch
+ statement.
+
+ * mail-account-gui.c (mail_account_gui_auto_detect_extra_conf):
+ Likewise.
+
+ * mail-composer-prefs.c (spell_load_values): add some dummy
+ typedefs to avoid empty macro arguments, which have undefined
+ behavior.
+
+ * mail-importer.c: #include <sys/types.h> for OS X
+
2002-09-23 Jeffrey Stedfast <fejj@ximian.com>
* mail-ops.c (save_part_save): Use 0666 as the create mode so that
diff --git a/mail/mail-account-gui.c b/mail/mail-account-gui.c
index da7478232f..4bed19d082 100644
--- a/mail/mail-account-gui.c
+++ b/mail/mail-account-gui.c
@@ -316,6 +316,7 @@ mail_account_gui_auto_detect_extra_conf (MailAccountGui *gui)
}
break;
default:
+ break;
}
}
diff --git a/mail/mail-composer-prefs.c b/mail/mail-composer-prefs.c
index a49e55fcbe..fb5e0f455d 100644
--- a/mail/mail-composer-prefs.c
+++ b/mail/mail-composer-prefs.c
@@ -566,9 +566,9 @@ spell_load_values (MailComposerPrefs *prefs)
prefs->spell_error_color.green = 0;
prefs->spell_error_color.blue = 0;
- GET (int, "/spell_error_color_red", prefs->spell_error_color.red,,);
- GET (int, "/spell_error_color_green", prefs->spell_error_color.green,,);
- GET (int, "/spell_error_color_blue", prefs->spell_error_color.blue,,);
+ GET (int, "/spell_error_color_red", prefs->spell_error_color.red, (void)0, (int));
+ GET (int, "/spell_error_color_green", prefs->spell_error_color.green, (void)0, (int));
+ GET (int, "/spell_error_color_blue", prefs->spell_error_color.blue, (void)0, (int));
GET (string, "/language", prefs->language_str, g_free (prefs->language_str), g_strdup);
if (prefs->language_str == NULL)
diff --git a/mail/mail-importer.c b/mail/mail-importer.c
index 5ed406d134..13616b31a0 100644
--- a/mail/mail-importer.c
+++ b/mail/mail-importer.c
@@ -24,6 +24,7 @@
#include <config.h>
#endif
+#include <sys/types.h>
#include <dirent.h>
#include <gmodule.h>
#include <libgnome/gnome-defs.h>
diff --git a/mail/mail-signature-editor.c b/mail/mail-signature-editor.c
index 36e65e985d..dae3e6934d 100644
--- a/mail/mail-signature-editor.c
+++ b/mail/mail-signature-editor.c
@@ -157,6 +157,7 @@ exit_dialog_cb (int reply, ESignatureEditor *editor)
break;
case REPLY_CANCEL:
default:
+ break;
}
}