Changeset: 66ab53a701ee for MonetDB
URL: https://dev.monetdb.org/hg/MonetDB/rev/66ab53a701ee
Modified Files:
monetdb5/modules/mal/bbp.c
monetdb5/modules/mal/clients.c
monetdb5/modules/mal/mal_mapi.c
monetdb5/modules/mal/mdb.c
monetdb5/modules/mal/profiler.c
monetdb5/optimizer/opt_candidates.c
monetdb5/optimizer/opt_coercion.c
monetdb5/optimizer/opt_deadcode.c
monetdb5/optimizer/opt_dict.c
monetdb5/optimizer/opt_for.c
monetdb5/optimizer/opt_matpack.c
monetdb5/optimizer/opt_querylog.c
Branch: Mar2025
Log Message:
Remove silly message about "fooling" the compiler.
diffs (171 lines):
diff --git a/monetdb5/modules/mal/bbp.c b/monetdb5/modules/mal/bbp.c
--- a/monetdb5/modules/mal/bbp.c
+++ b/monetdb5/modules/mal/bbp.c
@@ -39,7 +39,7 @@ CMDbbpbind(Client cntxt, MalBlkPtr mb, M
BAT *b;
(void) cntxt;
- (void) mb; /* fool compiler */
+ (void) mb;
lhs = &stk->stk[pci->argv[0]];
name = *getArgReference_str(stk, pci, 1);
if (name == NULL || isIdentifier(name) < 0)
diff --git a/monetdb5/modules/mal/clients.c b/monetdb5/modules/mal/clients.c
--- a/monetdb5/modules/mal/clients.c
+++ b/monetdb5/modules/mal/clients.c
@@ -177,7 +177,7 @@ CLTquit(Client cntxt, MalBlkPtr mb, MalS
{
str msg = MAL_SUCCEED;
int idx = cntxt->idx;
- (void) mb; /* fool compiler */
+ (void) mb;
if (pci->argc == 2) {
if (cntxt->user == MAL_ADMIN)
diff --git a/monetdb5/modules/mal/mal_mapi.c b/monetdb5/modules/mal/mal_mapi.c
--- a/monetdb5/modules/mal/mal_mapi.c
+++ b/monetdb5/modules/mal/mal_mapi.c
@@ -986,7 +986,7 @@ SERVERstop(void *ret)
* system is going down */
while (ATOMIC_GET(&nlistener) > 0 && !GDKexiting())
MT_sleep_ms(100);
- (void) ret; /* fool compiler */
+ (void) ret;
return MAL_SUCCEED;
}
diff --git a/monetdb5/modules/mal/mdb.c b/monetdb5/modules/mal/mdb.c
--- a/monetdb5/modules/mal/mdb.c
+++ b/monetdb5/modules/mal/mdb.c
@@ -231,7 +231,7 @@ MDBStkDepth(Client cntxt, MalBlkPtr mb,
int *ret = getArgReference_int(s, p, 0);
(void) cntxt;
- (void) mb; /* fool compiler */
+ (void) mb;
*ret = getStkDepth(s);
return MAL_SUCCEED;
}
@@ -449,7 +449,7 @@ MDBlist3(Client cntxt, MalBlkPtr mb, Mal
if (s == NULL)
throw(MAL, "mdb.list", "Could not find %s.%s", modnme, fcnnme);
printFunction(cntxt->fdout, s->def, 0, LIST_MAL_NAME);
- (void) mb; /* fool compiler */
+ (void) mb;
return MAL_SUCCEED;
}
@@ -473,7 +473,7 @@ MDBlist3Detail(Client cntxt, MalBlkPtr m
if (s == NULL)
throw(MAL, "mdb.list", "Could not find %s.%s", modnme, fcnnme);
printFunction(cntxt->fdout, s->def, 0, LIST_MAL_DEBUG);
- (void) mb; /* fool compiler */
+ (void) mb;
return NULL;
}
diff --git a/monetdb5/modules/mal/profiler.c b/monetdb5/modules/mal/profiler.c
--- a/monetdb5/modules/mal/profiler.c
+++ b/monetdb5/modules/mal/profiler.c
@@ -115,7 +115,7 @@ CMDstopTrace(Client cntxt, MalBlkPtr mb,
static str
CMDnoopProfiler(void *res)
{
- (void) res; /* fool compiler */
+ (void) res;
return MAL_SUCCEED;
}
@@ -136,7 +136,7 @@ CMDgetTrace(Client cntxt, MalBlkPtr mb,
bat *res = getArgReference_bat(stk, pci, 0);
BAT *bn;
- (void) cntxt; /* fool compiler */
+ (void) cntxt;
(void) mb;
bn = getTrace(cntxt, path);
if (bn) {
diff --git a/monetdb5/optimizer/opt_candidates.c
b/monetdb5/optimizer/opt_candidates.c
--- a/monetdb5/optimizer/opt_candidates.c
+++ b/monetdb5/optimizer/opt_candidates.c
@@ -27,7 +27,7 @@ OPTcandidatesImplementation(Client cntxt
if (!(ATOMIC_GET(&GDKdebug) & TESTINGMASK))
goto wrapup;
(void) cntxt;
- (void) stk; /* to fool compilers */
+ (void) stk;
for (int i = 0; i < mb->stop; i++) {
p = getInstrPtr(mb, i);
if (p->token == ASSIGNsymbol) {
diff --git a/monetdb5/optimizer/opt_coercion.c
b/monetdb5/optimizer/opt_coercion.c
--- a/monetdb5/optimizer/opt_coercion.c
+++ b/monetdb5/optimizer/opt_coercion.c
@@ -104,7 +104,7 @@ OPTcoercionImplementation(Client cntxt,
if (coerce == NULL)
throw(MAL, "optimizer.coercion", SQLSTATE(HY013)
MAL_MALLOC_FAIL);
(void) cntxt;
- (void) stk; /* to fool compilers */
+ (void) stk;
for (i = 1; i < mb->stop; i++) {
p = getInstrPtr(mb, i);
diff --git a/monetdb5/optimizer/opt_deadcode.c
b/monetdb5/optimizer/opt_deadcode.c
--- a/monetdb5/optimizer/opt_deadcode.c
+++ b/monetdb5/optimizer/opt_deadcode.c
@@ -26,7 +26,7 @@ OPTdeadcodeImplementation(Client cntxt,
str msg = MAL_SUCCEED;
(void) cntxt;
- (void) stk; /* to fool compilers */
+ (void) stk;
if (mb->inlineProp)
goto wrapup;
diff --git a/monetdb5/optimizer/opt_dict.c b/monetdb5/optimizer/opt_dict.c
--- a/monetdb5/optimizer/opt_dict.c
+++ b/monetdb5/optimizer/opt_dict.c
@@ -43,7 +43,7 @@ OPTdictImplementation(Client cntxt, MalB
str msg = MAL_SUCCEED;
(void) cntxt;
- (void) stk; /* to fool compilers */
+ (void) stk;
if (mb->inlineProp)
goto wrapup;
diff --git a/monetdb5/optimizer/opt_for.c b/monetdb5/optimizer/opt_for.c
--- a/monetdb5/optimizer/opt_for.c
+++ b/monetdb5/optimizer/opt_for.c
@@ -44,7 +44,7 @@ OPTforImplementation(Client cntxt, MalBl
str msg = MAL_SUCCEED;
(void) cntxt;
- (void) stk; /* to fool compilers */
+ (void) stk;
if (mb->inlineProp)
goto wrapup;
diff --git a/monetdb5/optimizer/opt_matpack.c b/monetdb5/optimizer/opt_matpack.c
--- a/monetdb5/optimizer/opt_matpack.c
+++ b/monetdb5/optimizer/opt_matpack.c
@@ -32,7 +32,7 @@ OPTmatpackImplementation(Client cntxt, M
}
(void) cntxt;
- (void) stk; /* to fool compilers */
+ (void) stk;
for (i = 1; i < mb->stop; i++)
if (getModuleId(getInstrPtr(mb, i)) == matRef
&& getFunctionId(getInstrPtr(mb, i)) == packRef
diff --git a/monetdb5/optimizer/opt_querylog.c
b/monetdb5/optimizer/opt_querylog.c
--- a/monetdb5/optimizer/opt_querylog.c
+++ b/monetdb5/optimizer/opt_querylog.c
@@ -31,7 +31,7 @@ OPTquerylogImplementation(Client cntxt,
if (!QLOGisset())
goto wrapup;
- (void) stk; /* to fool compilers */
+ (void) stk;
(void) cntxt;
/* gather information */
for (i = 1; i < mb->stop; i++) {
_______________________________________________
checkin-list mailing list -- [email protected]
To unsubscribe send an email to [email protected]