Changeset: 92da8714361d for MonetDB
URL: http://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=92da8714361d
Modified Files:
        monetdb5/modules/atoms/mtime.c
Branch: default
Log Message:

mtime.c: Listen to compilers rather than scilence them:

static variable "timezone_name" is declared, set & used;
hence, no compiler ever complained about it;
thus, we should (must) not add a "fake use" for it.


diffs (13 lines):

diff --git a/monetdb5/modules/atoms/mtime.c b/monetdb5/modules/atoms/mtime.c
--- a/monetdb5/modules/atoms/mtime.c
+++ b/monetdb5/modules/atoms/mtime.c
@@ -1898,8 +1898,7 @@ MTIMEprelude(void)
        monettime_prelude();
        tz = *tzone_nil;                        /* to ensure initialized 
variables */
 
-       (void) timezone_name;   /* fake use */
-       (void) timezone_def;
+       (void) timezone_def; /* StM: statically declared, set, but never used 
!??? */
        /* here we should initialize the time box as well */
        box = openBox("time");
        if (box == 0)
_______________________________________________
Checkin-list mailing list
[email protected]
http://mail.monetdb.org/mailman/listinfo/checkin-list

Reply via email to