Changeset: 6d4c7b54fb97 for MonetDB
URL: http://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=6d4c7b54fb97
Modified Files:
        clients/src/mapilib/Mapi.mx
Branch: Jun2010
Log Message:

Mapi.mx:2342: variable "s" is used before its value is set

So try and remove the (void)s, and hope the compiler will not complain
that s is declared but never used (because it's only used for the sizeof)


diffs (12 lines):

diff -r 75c700a89bba -r 6d4c7b54fb97 clients/src/mapilib/Mapi.mx
--- a/clients/src/mapilib/Mapi.mx       Tue Jul 27 08:25:59 2010 +0200
+++ b/clients/src/mapilib/Mapi.mx       Tue Jul 27 08:39:16 2010 +0200
@@ -2339,7 +2339,7 @@
 #ifdef HAVE_SYS_UN_H
        if (mid->hostname == NULL) {
                struct stat st;
-               struct sockaddr_un s; /* just for sizeof(s.sun_path) */ (void)s;
+               struct sockaddr_un s; /* just for sizeof(s.sun_path) */
                snprintf(errbuf, sizeof(errbuf),
                         CLIENTS_PREFIX "/var/MonetDB5/dbfarm/mapi_socket");
                if (strlen(errbuf) <= sizeof(s.sun_path) &&
_______________________________________________
Checkin-list mailing list
Checkin-list@monetdb.org
http://mail.monetdb.org/mailman/listinfo/checkin-list

Reply via email to