|
From: <kin...@us...> - 2023-07-08 14:43:49
|
Revision: 7062
http://sourceforge.net/p/teem/code/7062
Author: kindlmann
Date: 2023-07-08 14:43:47 +0000 (Sat, 08 Jul 2023)
Log Message:
-----------
fixing warning
Modified Paths:
--------------
teem/trunk/src/hest/parseHest.c
Modified: teem/trunk/src/hest/parseHest.c
===================================================================
--- teem/trunk/src/hest/parseHest.c 2023-07-08 14:29:44 UTC (rev 7061)
+++ teem/trunk/src/hest/parseHest.c 2023-07-08 14:43:47 UTC (rev 7062)
@@ -1481,7 +1481,10 @@
/* currently, any left-over arguments indicate error */
if (argc_used) {
- char stops[3] = {'-', PARM->varParamStopFlag, '\0'};
+ /* char stops[3] = {'-', PARM->varParamStopFlag, '\0'}; triggers warning:
+ initializer element is not computable at load time */
+ char stops[3] = "-X";
+ stops[1] = PARM->varParamStopFlag;
if (strcmp(stops, argv[0])) {
sprintf(err, "%sunexpected arg%s: \"%s\"", ME,
('-' == argv[0][0] ? " (or unrecognized flag)" : ""), argv[0]);
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|