The variable sqwebmail_content_charset is defined twice, in sqwebmail.c
and gpg.c. One of them should be declared as extern.

By default gcc is lax on these things and allows duplicate global
definitions. However it is not correct and gcc can be switched to a
more strict mode with the flag -fno-common.

See attached patch, it'll declare the variable as extern in gpg.c.
Please apply.

Hanno Böck

mail/jabber: ha...@hboeck.de
GPG: FE73757FA60E4E21B937579FA5880072BBB51E42
--- a/libs/sqwebmail/gpg.c	2015-02-27 20:13:32.000000000 +0100
+++ b/libs/sqwebmail/gpg.c	2016-09-19 13:54:15.389533196 +0200
@@ -36,7 +36,7 @@
 extern void output_scriptptrget();
 extern void print_attrencodedlen(const char *, size_t, int, FILE *);
 extern void print_safe(const char *);
-const char *sqwebmail_content_charset;
+extern const char *sqwebmail_content_charset;
 static char gpgerrbuf[1024];

Attachment: pgpsE5XGTiLUJ.pgp
Description: OpenPGP digital signature

courier-users mailing list
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users

Reply via email to