From ccc7dbaf49012e66a2c1b344df20c8aa51c502dc Mon Sep 17 00:00:00 2001 From: Dan Winship Date: Mon, 23 Sep 2002 22:09:29 +0000 Subject: 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 for OS X svn path=/trunk/; revision=18186 --- mail/ChangeLog | 14 ++++++++++++++ mail/mail-account-gui.c | 1 + mail/mail-composer-prefs.c | 6 +++--- mail/mail-importer.c | 1 + mail/mail-signature-editor.c | 1 + 5 files changed, 20 insertions(+), 3 deletions(-) (limited to 'mail') 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 + + * 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 for OS X + 2002-09-23 Jeffrey Stedfast * 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 #endif +#include #include #include #include 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; } } -- cgit v1.2.3