commit 62d2b017ebde455fc1db46e5e79bbade70267712
parent 30466a274b40928ed6baf779f304b65f61bf3123
Author: Remy Noulin <loader2x@gmail.com>
Date: Tue, 12 May 2020 21:17:25 +0200
fix gcc8 warnings and a bug (missing break; in smallJson)
release/libsheepy.h | 16 +-
src/CuTest/CuTest.c | 11 +-
src/json/libsheepyCSmallJson.c | 23 ++
src/json/libsheepyCSmallJsonInternal.h | 2 +
src/json/libsheepyObjectCuTest.c | 44 +--
src/libsheepy.h | 16 +-
src/libsheepyCuTest.c | 558 ++++++++++++++++-----------------
src/libsheepySmallCuTest.c | 120 +++----
src/libsheepyTest.c | 4 +-
9 files changed, 422 insertions(+), 372 deletions(-)
Diffstat:
9 files changed, 422 insertions(+), 372 deletions(-)
diff --git a/release/libsheepy.h b/release/libsheepy.h
@@ -96,7 +96,7 @@
// version accoring to the version package: Release.Major.minor.patch
// https://noulin.net/version/file/README.md.html
-#define LIBSHEEPY_VERSION "1.1.0.2"
+#define LIBSHEEPY_VERSION "1.1.1"
#ifndef SH_PREFIX
#define SH_PREFIX(NAME) NAME
@@ -7563,11 +7563,25 @@ int nanoSleepF(uint64_t time);
*
*/
#define CLEANUP(func) __attribute__((cleanup(func)))
+
+/**
+ * suppress warning: this statement may fall through [-Wimplicit-fallthrough=]
+ *
+ * switch (cond)
+ * {
+ * case 1:
+ * bar (0);
+ * FALLTHRU;
+ * default:
+ * }
+ */
+#define FALLTHRU __attribute__ ((fallthrough))
#else
#define UNUSED
#define DEPRECATED
#define PACKED
#define CLEANUP
+#define FALLTHRU
#endif
#endif // _libsheepyH
diff --git a/src/CuTest/CuTest.c b/src/CuTest/CuTest.c
@@ -4,6 +4,7 @@
#include <stdio.h>
#include <string.h>
#include <math.h>
+#include <inttypes.h>
#include "CuTest.h"
@@ -380,7 +381,7 @@ void CuAssertUintEquals_LineMsg(CuTest* tc, const char* file, int line, const ch
{
char buf[STRING_MAX];
if (expected == actual) return;
- sprintf(buf, "expected <%d> but was <%d>", expected, actual);
+ sprintf(buf, "expected <%"PRIu64"> but was <%"PRIu64">", expected, actual);
CuFail_Line(tc, file, line, message, buf);
}
@@ -389,8 +390,8 @@ void CuAssertUintNotEquals_LineMsg(CuTest* tc, const char* file, int line, const
{
char buf[STRING_MAX];
if (expected == actual)
- {
- sprintf(buf, "expected <%d> not equal to <%d>", expected, actual);
+ {
+ sprintf(buf, "expected <%"PRIu64"> not equal to <%"PRIu64">", expected, actual);
CuFail_Line(tc, file, line, message, buf);
return;
}
@@ -401,7 +402,7 @@ void CuAssertIntEquals_LineMsg(CuTest* tc, const char* file, int line, const cha
{
char buf[STRING_MAX];
if (expected == actual) return;
- sprintf(buf, "expected <%d> but was <%d>", expected, actual);
+ sprintf(buf, "expected <%"PRIi64"> but was <%"PRIi64">", expected, actual);
CuFail_Line(tc, file, line, message, buf);
}
@@ -411,7 +412,7 @@ void CuAssertIntNotEquals_LineMsg(CuTest* tc, const char* file, int line, const
char buf[STRING_MAX];
if (expected == actual)
{
- sprintf(buf, "expected <%d> not equal to <%d>", expected, actual);
+ sprintf(buf, "expected <%"PRIi64"> not equal to <%"PRIi64">", expected, actual);
CuFail_Line(tc, file, line, message, buf);
return;
}
diff --git a/src/json/libsheepyCSmallJson.c b/src/json/libsheepyCSmallJson.c
@@ -5172,6 +5172,7 @@ internal smallJsont* pushSmallJson(smallJsont *self, baset *value) {
switch(self->topIsA) {
case SMALLJSON_IS_EMPTY:
self->topIsA = TOP_IS_ARRAY;
+ FALLTHRU;
case TOP_IS_ARRAY:
sArrayPushTiny(&(self->topA), toSmallt(value));
break;
@@ -5187,6 +5188,7 @@ internal smallJsont* pushUndefinedSmallJson(smallJsont *self) {
switch(self->topIsA) {
case SMALLJSON_IS_EMPTY:
self->topIsA = TOP_IS_ARRAY;
+ FALLTHRU;
case TOP_IS_ARRAY:
o = (smallt *) allocSUndefined();
sArrayPushTiny(&(self->topA), o);
@@ -5203,6 +5205,7 @@ internal smallJsont* pushBoolSmallJson(smallJsont *self, bool value) {
switch(self->topIsA) {
case SMALLJSON_IS_EMPTY:
self->topIsA = TOP_IS_ARRAY;
+ FALLTHRU;
case TOP_IS_ARRAY:
o = (smallt *) allocSBool(value);
sArrayPushTiny(&(self->topA), o);
@@ -5219,6 +5222,7 @@ internal smallJsont* pushDoubleSmallJson(smallJsont *self, double value) {
switch(self->topIsA) {
case SMALLJSON_IS_EMPTY:
self->topIsA = TOP_IS_ARRAY;
+ FALLTHRU;
case TOP_IS_ARRAY:
o = (smallt *) allocSDouble(value);
sArrayPushTiny(&(self->topA), o);
@@ -5235,6 +5239,7 @@ internal smallJsont* pushIntSmallJson(smallJsont *self, int64_t value) {
switch(self->topIsA) {
case SMALLJSON_IS_EMPTY:
self->topIsA = TOP_IS_ARRAY;
+ FALLTHRU;
case TOP_IS_ARRAY:
o = (smallt *) allocSInt(value);
sArrayPushTiny(&(self->topA), o);
@@ -5255,6 +5260,7 @@ internal smallJsont* pushSSmallJson(smallJsont *self, const char *string) {
switch(self->topIsA) {
case SMALLJSON_IS_EMPTY:
self->topIsA = TOP_IS_ARRAY;
+ FALLTHRU;
case TOP_IS_ARRAY:
o = (smallt *) allocSStringTiny(string);
sArrayPushTiny(&(self->topA), o);
@@ -5313,6 +5319,7 @@ internal smallJsont* pushDictSmallJson(smallJsont *self, smallDictt *dict) {
switch(self->topIsA) {
case SMALLJSON_IS_EMPTY:
self->topIsA = TOP_IS_ARRAY;
+ FALLTHRU;
case TOP_IS_ARRAY:
if (!dict->d) {
dict->d = allocSDict();;
@@ -5339,6 +5346,7 @@ internal smallJsont* pushArraySmallJson(smallJsont *self, smallArrayt *array) {
switch(self->topIsA) {
case SMALLJSON_IS_EMPTY:
self->topIsA = TOP_IS_ARRAY;
+ FALLTHRU;
case TOP_IS_ARRAY:
if (!array->a) {
// allocate empty array
@@ -5362,6 +5370,7 @@ internal smallJsont* pushArraycSmallJson(smallJsont *self, char **array) {
switch(self->topIsA) {
case SMALLJSON_IS_EMPTY:
self->topIsA = TOP_IS_ARRAY;
+ FALLTHRU;
case TOP_IS_ARRAY:
;sArrayt *a = allocSArray();
@@ -5391,6 +5400,7 @@ internal smallJsont* pushSmallBoolSmallJson(smallJsont *self, smallBoolt *value)
switch(self->topIsA) {
case SMALLJSON_IS_EMPTY:
self->topIsA = TOP_IS_ARRAY;
+ FALLTHRU;
case TOP_IS_ARRAY:
o = (smallt *) value->value;
sArrayPushTiny(&(self->topA), o);
@@ -5415,6 +5425,7 @@ internal smallJsont* pushSmallBytesSmallJson(smallJsont *self, smallBytest *valu
switch(self->topIsA) {
case SMALLJSON_IS_EMPTY:
self->topIsA = TOP_IS_ARRAY;
+ FALLTHRU;
case TOP_IS_ARRAY:
if (!value->B) {
sArrayPushTiny(&(self->topA), (smallt *)allocSUndefined());
@@ -5444,6 +5455,7 @@ internal smallJsont* pushSmallDoubleSmallJson(smallJsont *self, smallDoublet *va
switch(self->topIsA) {
case SMALLJSON_IS_EMPTY:
self->topIsA = TOP_IS_ARRAY;
+ FALLTHRU;
case TOP_IS_ARRAY:
o = (smallt *) value->value;
sArrayPushTiny(&(self->topA), o);
@@ -5468,6 +5480,7 @@ internal smallJsont* pushSmallIntSmallJson(smallJsont *self, smallIntt *value) {
switch(self->topIsA) {
case SMALLJSON_IS_EMPTY:
self->topIsA = TOP_IS_ARRAY;
+ FALLTHRU;
case TOP_IS_ARRAY:
o = (smallt *) value->value;
sArrayPushTiny(&(self->topA), o);
@@ -5492,6 +5505,7 @@ internal smallJsont* pushSmallJsonSmallJson(smallJsont *self, smallJsont *value)
switch(self->topIsA) {
case SMALLJSON_IS_EMPTY:
self->topIsA = TOP_IS_ARRAY;
+ FALLTHRU;
case TOP_IS_ARRAY:
switch(value->topIsA){
case SMALLJSON_IS_EMPTY:
@@ -5541,6 +5555,7 @@ internal smallJsont* pushSmallStringSmallJson(smallJsont *self, smallStringt *st
switch(self->topIsA) {
case SMALLJSON_IS_EMPTY:
self->topIsA = TOP_IS_ARRAY;
+ FALLTHRU;
case TOP_IS_ARRAY:
if (!string->data) {
o = (smallt *) allocSStringTiny("");
@@ -5597,6 +5612,7 @@ internal smallJsont* pushSmallContainerSmallJson(smallJsont *self, smallContaine
switch(self->topIsA) {
case SMALLJSON_IS_EMPTY:
self->topIsA = TOP_IS_ARRAY;
+ FALLTHRU;
case TOP_IS_ARRAY:
if (!container->data) {
o = (smallt *) allocSContainer(NULL);
@@ -5622,6 +5638,7 @@ internal smallJsont* pushNFreeSmallJson(smallJsont *self, baset *value) {
switch(self->topIsA) {
case SMALLJSON_IS_EMPTY:
self->topIsA = TOP_IS_ARRAY;
+ FALLTHRU;
case TOP_IS_ARRAY:
o = toSmallt(value);
sArrayPushTiny(&(self->topA), o);
@@ -5751,6 +5768,7 @@ internal smallJsont* pushManySmallJson(smallJsont *self, ...) {
switch(self->topIsA) {
case SMALLJSON_IS_EMPTY:
self->topIsA = TOP_IS_ARRAY;
+ FALLTHRU;
case TOP_IS_ARRAY:
;va_list pl;
baset *paramType;
@@ -5803,6 +5821,7 @@ internal smallJsont* pushManySSmallJson(smallJsont *self, ...) {
switch(self->topIsA) {
case SMALLJSON_IS_EMPTY:
self->topIsA = TOP_IS_ARRAY;
+ FALLTHRU;
case TOP_IS_ARRAY:
;va_list pl;
char *paramType;
@@ -5854,6 +5873,7 @@ internal smallJsont* pushNFreeManySmallJson(smallJsont *self, ...) {
switch(self->topIsA) {
case SMALLJSON_IS_EMPTY:
self->topIsA = TOP_IS_ARRAY;
+ FALLTHRU;
case TOP_IS_ARRAY:
;va_list pl;
baset *paramType;
@@ -5906,6 +5926,7 @@ internal smallJsont* pushNFreeManySSmallJson(smallJsont *self, ...) {
switch(self->topIsA) {
case SMALLJSON_IS_EMPTY:
self->topIsA = TOP_IS_ARRAY;
+ FALLTHRU;
case TOP_IS_ARRAY:
;va_list pl;
char *paramType;
@@ -7780,6 +7801,7 @@ internal smallJsont* mergeSmallJson(smallJsont *self, smallJsont *smallJson) {
goto appendToArray;
}
self->topIsA = TOP_IS_DICT;
+ FALLTHRU;
case TOP_IS_DICT:;
forEachSDict(smallJson->top, e) {
if (e->key) {
@@ -15079,6 +15101,7 @@ internal bool equalSmallJsonChar(smallJsont* self, const char * p2) {
else if (eqS(p2, "false") || eqS(p2, "FALSE")) {
return(!self->topB->value);
}
+ break;
case TOP_IS_DOUBLE:
if (isInt(p2) || !isNumber(p2)) {
return(false);
diff --git a/src/json/libsheepyCSmallJsonInternal.h b/src/json/libsheepyCSmallJsonInternal.h
@@ -165,7 +165,9 @@ declareRecycle(smallJsont);
self->topIsA = TOP_IS_DICT;\
else if (keyType == ARRAY_PATH)\
self->topIsA = TOP_IS_ARRAY;\
+ FALLTHRU;\
case TOP_IS_ARRAY:\
+ FALLTHRU;\
case TOP_IS_DICT:;\
allocValue;\
subSetJsonPath;\
diff --git a/src/json/libsheepyObjectCuTest.c b/src/json/libsheepyObjectCuTest.c
@@ -26,7 +26,7 @@
// TODO redirect stderr
-void cSmallDictT(CuTest *tc) {
+void cSmallDictT(CuTest *tc UNUSED) {
// local object
createSmallDict(obj);
@@ -281,7 +281,7 @@ void cSmallDictT(CuTest *tc) {
}
-void cSmallJsonT(CuTest *tc) {
+void cSmallJsonT(CuTest *tc UNUSED) {
// local object
createSmallJson(obj);
@@ -1219,7 +1219,7 @@ void cSmallJsonT(CuTest *tc) {
}
-void cSmallArrayT(CuTest *tc) {
+void cSmallArrayT(CuTest *tc UNUSED) {
// local object
createSmallArray(obj);
@@ -1830,7 +1830,7 @@ void cSmallArrayT(CuTest *tc) {
}
-void cUndefinedT(CuTest *tc) {
+void cUndefinedT(CuTest *tc UNUSED) {
// local object
createUndefined(obj);
@@ -1857,7 +1857,7 @@ void cUndefinedT(CuTest *tc) {
-void cSmallBytesT(CuTest *tc) {
+void cSmallBytesT(CuTest *tc UNUSED) {
// local object
createSmallBytes(obj);
@@ -1911,7 +1911,7 @@ void cSmallBytesT(CuTest *tc) {
}
-void putsOT(CuTest *tc) {
+void putsOT(CuTest *tc UNUSED) {
createAllocateSmallArray(l);
@@ -1925,7 +1925,7 @@ void putsOT(CuTest *tc) {
}
-void execOT(CuTest *tc) {
+void execOT(CuTest *tc UNUSED) {
createAllocateSmallArray(l);
@@ -1945,7 +1945,7 @@ void execOT(CuTest *tc) {
}
-void walkDirOT(CuTest *tc) {
+void walkDirOT(CuTest *tc UNUSED) {
smallArrayt *l;
@@ -1968,7 +1968,7 @@ void walkDirOT(CuTest *tc) {
}
-void expandHomeOT(CuTest *tc) {
+void expandHomeOT(CuTest *tc UNUSED) {
// no ~/
createAllocateSmallString(v);
@@ -1982,7 +1982,7 @@ void expandHomeOT(CuTest *tc) {
}
-void chDirOT(CuTest *tc) {
+void chDirOT(CuTest *tc UNUSED) {
// change directory
smallStringt *c;
@@ -2007,7 +2007,7 @@ void chDirOT(CuTest *tc) {
}
-void fileExistsOT(CuTest *tc) {
+void fileExistsOT(CuTest *tc UNUSED) {
createAllocateSmallArray(sA);
char **l = listCreateS("../libsheepyTest.c", "wefwepfk34.c", "../../src", "");
@@ -2035,7 +2035,7 @@ void fileExistsOT(CuTest *tc) {
}
-void fileChmodOT(CuTest *tc) {
+void fileChmodOT(CuTest *tc UNUSED) {
// existing file
createAllocateSmallString(v);
@@ -2059,7 +2059,7 @@ void fileChmodOT(CuTest *tc) {
}
-void fileSizeOT(CuTest *tc) {
+void fileSizeOT(CuTest *tc UNUSED) {
// existing file
createAllocateSmallString(s);
@@ -2087,7 +2087,7 @@ void fileSizeOT(CuTest *tc) {
}
-void mkdirParentsOT(CuTest *tc) {
+void mkdirParentsOT(CuTest *tc UNUSED) {
// directory
rmAll("mkdirTest.null/null");
@@ -2111,7 +2111,7 @@ void mkdirParentsOT(CuTest *tc) {
}
-void rmAllOT(CuTest *tc) {
+void rmAllOT(CuTest *tc UNUSED) {
// directory
createAllocateSmallString(s);
@@ -2136,7 +2136,7 @@ void rmAllOT(CuTest *tc) {
}
-void copyOT(CuTest *tc) {
+void copyOT(CuTest *tc UNUSED) {
// file
createAllocateSmallString(s);
@@ -2168,7 +2168,7 @@ void copyOT(CuTest *tc) {
}
-void randomSOT(CuTest *tc) {
+void randomSOT(CuTest *tc UNUSED) {
// get random string
smallStringt *s = randomSO(10);
@@ -2182,7 +2182,7 @@ void randomSOT(CuTest *tc) {
}
-void randomAlphaNumSOT(CuTest *tc) {
+void randomAlphaNumSOT(CuTest *tc UNUSED) {
// get random string
smallStringt *s = randomAlphaNumSO(10);
@@ -2196,7 +2196,7 @@ void randomAlphaNumSOT(CuTest *tc) {
}
-void readLineOT(CuTest *tc) {
+void readLineOT(CuTest *tc UNUSED) {
FILE *fp;
smallStringt *s;
@@ -2220,7 +2220,7 @@ void readLineOT(CuTest *tc) {
}
-void toSmalltT(CuTest *tc) {
+void toSmalltT(CuTest *tc UNUSED) {
smallStringt *s;
smallIntt *i;
@@ -2278,7 +2278,7 @@ void toSmalltT(CuTest *tc) {
}
-void toBasetT(CuTest *tc) {
+void toBasetT(CuTest *tc UNUSED) {
// bool
sBoolt *sb = allocSBool(true);
@@ -2344,7 +2344,7 @@ void toBasetT(CuTest *tc) {
-int main(int n, char**v) {
+int main(int n UNUSED, char**v UNUSED) {
// disable btrace to make the test run faster
btraceDisable();
CuString *output = CuStringNew();
diff --git a/src/libsheepy.h b/src/libsheepy.h
@@ -96,7 +96,7 @@
// version accoring to the version package: Release.Major.minor.patch
// https://noulin.net/version/file/README.md.html
-#define LIBSHEEPY_VERSION "1.1.0.2"
+#define LIBSHEEPY_VERSION "1.1.1"
#ifndef SH_PREFIX
#define SH_PREFIX(NAME) NAME
@@ -7563,11 +7563,25 @@ int nanoSleepF(uint64_t time);
*
*/
#define CLEANUP(func) __attribute__((cleanup(func)))
+
+/**
+ * suppress warning: this statement may fall through [-Wimplicit-fallthrough=]
+ *
+ * switch (cond)
+ * {
+ * case 1:
+ * bar (0);
+ * FALLTHRU;
+ * default:
+ * }
+ */
+#define FALLTHRU __attribute__ ((fallthrough))
#else
#define UNUSED
#define DEPRECATED
#define PACKED
#define CLEANUP
+#define FALLTHRU
#endif
#endif // _libsheepyH
diff --git a/src/libsheepyCuTest.c b/src/libsheepyCuTest.c
@@ -19,7 +19,7 @@
// TODO redirect stderr
-void setLogFileT(CuTest *tc) {
+void setLogFileT(CuTest *tc UNUSED) {
FILE *f;
@@ -99,7 +99,7 @@ void setLogFileT(CuTest *tc) {
}
-void closeLogFilesT(CuTest *tc) {
+void closeLogFilesT(CuTest *tc UNUSED) {
closeLogFiles();
closeLogFiles();
@@ -107,14 +107,14 @@ void closeLogFilesT(CuTest *tc) {
}
-void getLogModeT(CuTest *tc) {
+void getLogModeT(CuTest *tc UNUSED) {
ck_assert_int_eq(getLogMode(), LOG_DATE);
}
-void setLogModeT(CuTest *tc) {
+void setLogModeT(CuTest *tc UNUSED) {
// set mode
setLogMode(LOG_CONCISE);
@@ -152,7 +152,7 @@ void setLogModeT(CuTest *tc) {
}
-void _pLogT(CuTest *tc) {
+void _pLogT(CuTest *tc UNUSED) {
setLogFile("test.log");
@@ -264,7 +264,7 @@ void _pLogT(CuTest *tc) {
void initTest(void) { }
-void initLibsheepyFT(CuTest *tc) {
+void initLibsheepyFT(CuTest *tc UNUSED) {
// regular program
initLibsheepy("test");
@@ -275,7 +275,7 @@ void initLibsheepyFT(CuTest *tc) {
}
-void getProgPathT(CuTest *tc) {
+void getProgPathT(CuTest *tc UNUSED) {
const char *s;
@@ -299,7 +299,7 @@ void getProgPathT(CuTest *tc) {
}
-void getRealProgPathT(CuTest *tc) {
+void getRealProgPathT(CuTest *tc UNUSED) {
const char *s;
@@ -316,7 +316,7 @@ void getRealProgPathT(CuTest *tc) {
}
-void systemNFreeFT(CuTest *tc) {
+void systemNFreeFT(CuTest *tc UNUSED) {
int r;
@@ -331,7 +331,7 @@ void systemNFreeFT(CuTest *tc) {
}
-void getModificationTimeT(CuTest *tc) {
+void getModificationTimeT(CuTest *tc UNUSED) {
// get time
ck_assert_int_ne(getModificationTime("libsheepy.c"), 0);
@@ -345,7 +345,7 @@ void getModificationTimeT(CuTest *tc) {
}
-void setModificationTimeT(CuTest *tc) {
+void setModificationTimeT(CuTest *tc UNUSED) {
time_t t;
@@ -362,7 +362,7 @@ void setModificationTimeT(CuTest *tc) {
}
-void equalModificationTimesT(CuTest *tc) {
+void equalModificationTimesT(CuTest *tc UNUSED) {
// equal time
ck_assert(equalModificationTimes("chmodTest.null", "chmodTest.null"));
@@ -381,7 +381,7 @@ void equalModificationTimesT(CuTest *tc) {
}
-void shDirnameT(CuTest *tc) {
+void shDirnameT(CuTest *tc UNUSED) {
char *s;
@@ -406,7 +406,7 @@ void shDirnameT(CuTest *tc) {
}
-void bDirnameT(CuTest *tc) {
+void bDirnameT(CuTest *tc UNUSED) {
char s[100] = "release/libsheepy.a";
@@ -430,7 +430,7 @@ void bDirnameT(CuTest *tc) {
}
-void bLDirnameT(CuTest *tc) {
+void bLDirnameT(CuTest *tc UNUSED) {
char s[100] = "release/libsheepy.a";
@@ -466,7 +466,7 @@ void bLDirnameT(CuTest *tc) {
}
-void expandHomeT(CuTest *tc) {
+void expandHomeT(CuTest *tc UNUSED) {
// no ~/
char *s;
@@ -479,7 +479,7 @@ void expandHomeT(CuTest *tc) {
}
-void iExpandHomeT(CuTest *tc) {
+void iExpandHomeT(CuTest *tc UNUSED) {
// no ~/
char *s = strdup("sheepy");
@@ -496,7 +496,7 @@ void iExpandHomeT(CuTest *tc) {
}
-void bExpandHomeT(CuTest *tc) {
+void bExpandHomeT(CuTest *tc UNUSED) {
// no ~/
char s[100] = "sheepy";
@@ -508,7 +508,7 @@ void bExpandHomeT(CuTest *tc) {
}
-void bLExpandHomeT(CuTest *tc) {
+void bLExpandHomeT(CuTest *tc UNUSED) {
// no ~/
char s[100] = "sheepy";
@@ -526,7 +526,7 @@ void bLExpandHomeT(CuTest *tc) {
}
-void normalizePathT(CuTest *tc) {
+void normalizePathT(CuTest *tc UNUSED) {
// test
char *s;
@@ -609,7 +609,7 @@ void normalizePathT(CuTest *tc) {
}
-void iNormalizePathT(CuTest *tc) {
+void iNormalizePathT(CuTest *tc UNUSED) {
// test
char *s = strdup("test/.././file.txt");
@@ -713,7 +713,7 @@ void iNormalizePathT(CuTest *tc) {
}
-void bNormalizePathT(CuTest *tc) {
+void bNormalizePathT(CuTest *tc UNUSED) {
// test
char s[100] = "test/.././file.txt";
@@ -795,7 +795,7 @@ void bNormalizePathT(CuTest *tc) {
}
-void bLNormalizePathT(CuTest *tc) {
+void bLNormalizePathT(CuTest *tc UNUSED) {
// test
char s[100] = "test/.././file.txt";
@@ -885,7 +885,7 @@ void bLNormalizePathT(CuTest *tc) {
}
-void timeToST(CuTest *tc) {
+void timeToST(CuTest *tc UNUSED) {
char *s = timeToS(0);
ck_assert_str_eq(s, "Thu Jan 1 01:00:00 1970");
@@ -894,7 +894,7 @@ void timeToST(CuTest *tc) {
}
-void chDirT(CuTest *tc) {
+void chDirT(CuTest *tc UNUSED) {
// change directory
char *c = getCwd();
@@ -911,7 +911,7 @@ void chDirT(CuTest *tc) {
}
-void isDirT(CuTest *tc) {
+void isDirT(CuTest *tc UNUSED) {
// dir
ck_assert(isDir("dirTest.null"));
@@ -928,7 +928,7 @@ void isDirT(CuTest *tc) {
}
-void isLinkT(CuTest *tc) {
+void isLinkT(CuTest *tc UNUSED) {
// link
ck_assert(isLink("linkTest.null"));
@@ -948,7 +948,7 @@ void isLinkT(CuTest *tc) {
}
-void fileExistsT(CuTest *tc) {
+void fileExistsT(CuTest *tc UNUSED) {
// detect existing file
ck_assert(fileExists("libsheepyTest.c"));
@@ -964,7 +964,7 @@ void fileExistsT(CuTest *tc) {
}
-void fileChmodT(CuTest *tc) {
+void fileChmodT(CuTest *tc UNUSED) {
// existing file
ck_assert(fileChmod("chmodTest.null", S_IRUSR | S_IWUSR | S_IXUSR | S_IRGRP | S_IXGRP | S_IROTH | S_IXOTH));
@@ -979,7 +979,7 @@ void fileChmodT(CuTest *tc) {
}
-void fileSizeT(CuTest *tc) {
+void fileSizeT(CuTest *tc UNUSED) {
// existing file
ck_assert_uint_eq(fileSize("sizeTest.null"), 743);
@@ -995,7 +995,7 @@ void fileSizeT(CuTest *tc) {
}
-void readFileToST(CuTest *tc) {
+void readFileToST(CuTest *tc UNUSED) {
char *l;
@@ -1026,7 +1026,7 @@ void readFileToST(CuTest *tc) {
}
-void bReadFileToST(CuTest *tc) {
+void bReadFileToST(CuTest *tc UNUSED) {
char l[100];
@@ -1058,7 +1058,7 @@ void bReadFileToST(CuTest *tc) {
}
-void bLReadFileToST(CuTest *tc) {
+void bLReadFileToST(CuTest *tc UNUSED) {
char l[100];
@@ -1099,7 +1099,7 @@ void bLReadFileToST(CuTest *tc) {
}
-void readFileT(CuTest *tc) {
+void readFileT(CuTest *tc UNUSED) {
char *l;
ssize_t sz;
@@ -1138,7 +1138,7 @@ void readFileT(CuTest *tc) {
}
-void bReadFileT(CuTest *tc) {
+void bReadFileT(CuTest *tc UNUSED) {
char l[100];
ssize_t sz;
@@ -1174,7 +1174,7 @@ void bReadFileT(CuTest *tc) {
}
-void bLReadFileT(CuTest *tc) {
+void bLReadFileT(CuTest *tc UNUSED) {
char l[100];
ssize_t sz;
@@ -1222,7 +1222,7 @@ void bLReadFileT(CuTest *tc) {
}
-void writeFileST(CuTest *tc) {
+void writeFileST(CuTest *tc UNUSED) {
char *l;
int r;
@@ -1257,7 +1257,7 @@ void writeFileST(CuTest *tc) {
}
-void writeFileT(CuTest *tc) {
+void writeFileT(CuTest *tc UNUSED) {
char *l;
int r;
@@ -1294,7 +1294,7 @@ void writeFileT(CuTest *tc) {
}
-void walkDirT(CuTest *tc) {
+void walkDirT(CuTest *tc UNUSED) {
char **l;
@@ -1317,7 +1317,7 @@ void walkDirT(CuTest *tc) {
}
-void walkDirDirT(CuTest *tc) {
+void walkDirDirT(CuTest *tc UNUSED) {
char **l;
@@ -1339,7 +1339,7 @@ void walkDirDirT(CuTest *tc) {
}
-void readDirT(CuTest *tc) {
+void readDirT(CuTest *tc UNUSED) {
char **l;
@@ -1360,7 +1360,7 @@ void readDirT(CuTest *tc) {
}
-void readDirDirT(CuTest *tc) {
+void readDirDirT(CuTest *tc UNUSED) {
char **l;
@@ -1382,7 +1382,7 @@ void readDirDirT(CuTest *tc) {
}
-void walkDirAllT(CuTest *tc) {
+void walkDirAllT(CuTest *tc UNUSED) {
char **l;
@@ -1407,7 +1407,7 @@ void walkDirAllT(CuTest *tc) {
}
-void readDirAllT(CuTest *tc) {
+void readDirAllT(CuTest *tc UNUSED) {
char **l;
@@ -1430,7 +1430,7 @@ void readDirAllT(CuTest *tc) {
}
-void mkdirParentsT(CuTest *tc) {
+void mkdirParentsT(CuTest *tc UNUSED) {
// directory
rmAll("mkdirTest.null/null");
@@ -1447,7 +1447,7 @@ void mkdirParentsT(CuTest *tc) {
}
-void rmAllT(CuTest *tc) {
+void rmAllT(CuTest *tc UNUSED) {
// directory
mkdirParents("rmAllTest.null/null");
@@ -1462,7 +1462,7 @@ void rmAllT(CuTest *tc) {
}
-void copyT(CuTest *tc) {
+void copyT(CuTest *tc UNUSED) {
// file
rmAll("copyTest.null");
@@ -1525,7 +1525,7 @@ void copyT(CuTest *tc) {
}
-void shRenameT(CuTest *tc) {
+void shRenameT(CuTest *tc UNUSED) {
// regualar file
ck_assert_int_eq(shRename("renameTest.null", "rename2Test.null"), 1);
@@ -1547,7 +1547,7 @@ void shRenameT(CuTest *tc) {
}
-void shMoveT(CuTest *tc) {
+void shMoveT(CuTest *tc UNUSED) {
// regualar file
ck_assert_int_eq(shMove("renameTest.null", "rename2Test.null"), 1);
@@ -1570,7 +1570,7 @@ void shMoveT(CuTest *tc) {
}
-void setSoftwareRandomT(CuTest *tc) {
+void setSoftwareRandomT(CuTest *tc UNUSED) {
// open /dev/urandom
setSoftwareRandom();
@@ -1579,7 +1579,7 @@ void setSoftwareRandomT(CuTest *tc) {
}
-void setHardwareRandomT(CuTest *tc) {
+void setHardwareRandomT(CuTest *tc UNUSED) {
// open /dev/urandom
setHardwareRandom();
@@ -1589,7 +1589,7 @@ void setHardwareRandomT(CuTest *tc) {
}
-void randomOpenCloseT(CuTest *tc) {
+void randomOpenCloseT(CuTest *tc UNUSED) {
// open /dev/urandom
ck_assert_int_eq(randomUrandomOpen(),1);
@@ -1598,7 +1598,7 @@ void randomOpenCloseT(CuTest *tc) {
}
-void randomWordT(CuTest *tc) {
+void randomWordT(CuTest *tc UNUSED) {
// get random value
randomUrandomOpen();
@@ -1610,7 +1610,7 @@ void randomWordT(CuTest *tc) {
}
-void randomWordFromHWT(CuTest *tc) {
+void randomWordFromHWT(CuTest *tc UNUSED) {
// get random value
setHardwareRandom();
@@ -1626,7 +1626,7 @@ void randomWordFromHWT(CuTest *tc) {
}
-void randomChoiceT(CuTest *tc) {
+void randomChoiceT(CuTest *tc UNUSED) {
// get random value
randomUrandomOpen();
@@ -1640,7 +1640,7 @@ void randomChoiceT(CuTest *tc) {
}
-void randomST(CuTest *tc) {
+void randomST(CuTest *tc UNUSED) {
// get random string
char *s = randomS(10);
@@ -1652,7 +1652,7 @@ void randomST(CuTest *tc) {
}
-void bRandomST(CuTest *tc) {
+void bRandomST(CuTest *tc UNUSED) {
char s[11];
char *r;
@@ -1667,7 +1667,7 @@ void bRandomST(CuTest *tc) {
}
-void randomAlphaNumST(CuTest *tc) {
+void randomAlphaNumST(CuTest *tc UNUSED) {
// get random string
char *s = randomAlphaNumS(10);
@@ -1679,7 +1679,7 @@ void randomAlphaNumST(CuTest *tc) {
}
-void bRandomAlphaNumST(CuTest *tc) {
+void bRandomAlphaNumST(CuTest *tc UNUSED) {
char s[11];
char *r;
@@ -1694,7 +1694,7 @@ void bRandomAlphaNumST(CuTest *tc) {
}
-void readST(CuTest *tc) {
+void readST(CuTest *tc UNUSED) {
char *s = readS();
ck_assert_str_eq(s, "aaaaaaaaaaaaaaaaaaaa");
@@ -1703,7 +1703,7 @@ void readST(CuTest *tc) {
}
-void bLReadST(CuTest *tc) {
+void bLReadST(CuTest *tc UNUSED) {
char s[21];
bLReadS(s, 21);
@@ -1716,14 +1716,14 @@ void bLReadST(CuTest *tc) {
}
-void readEnterT(CuTest *tc) {
+void readEnterT(CuTest *tc UNUSED) {
readEnter();
}
-void readLineT(CuTest *tc) {
+void readLineT(CuTest *tc UNUSED) {
FILE *fp;
char *s;
@@ -1748,7 +1748,7 @@ void readLineT(CuTest *tc) {
}
-void dupST(CuTest *tc) {
+void dupST(CuTest *tc UNUSED) {
// string
char *s = dupS("sheepy");
@@ -1760,7 +1760,7 @@ void dupST(CuTest *tc) {
}
-void shPrintfST(CuTest *tc) {
+void shPrintfST(CuTest *tc UNUSED) {
shPrintfS("\nWEE %d\n", 234);
shPrintfS(NULL);
@@ -1768,14 +1768,14 @@ void shPrintfST(CuTest *tc) {
}
-void shEprintfT(CuTest *tc) {
+void shEprintfT(CuTest *tc UNUSED) {
shEPrintfS("\nWEE %d\n", 234);
shEPrintfS(NULL);
}
-void freeManyST(CuTest *tc) {
+void freeManyST(CuTest *tc UNUSED) {
// not possible to know if a pointer is already freed
char *s1 = emptySF();
@@ -1785,7 +1785,7 @@ void freeManyST(CuTest *tc) {
}
-void logNFreeT(CuTest *tc) {
+void logNFreeT(CuTest *tc UNUSED) {
char *s = strdup("libsheepy");
logNFree(s);
@@ -1794,7 +1794,7 @@ void logNFreeT(CuTest *tc) {
}
-void strCpyT(CuTest *tc) {
+void strCpyT(CuTest *tc UNUSED) {
char s[1024];
@@ -1810,7 +1810,7 @@ void strCpyT(CuTest *tc) {
}
-void strLCpyT(CuTest *tc) {
+void strLCpyT(CuTest *tc UNUSED) {
char s[1024];
@@ -1841,7 +1841,7 @@ void strLCpyT(CuTest *tc) {
}
-void strCatT(CuTest *tc) {
+void strCatT(CuTest *tc UNUSED) {
char s[1024];
@@ -1861,7 +1861,7 @@ void strCatT(CuTest *tc) {
}
-void strNCatT(CuTest *tc) {
+void strNCatT(CuTest *tc UNUSED) {
char s[1024];
@@ -1892,7 +1892,7 @@ void strNCatT(CuTest *tc) {
}
-void strLCatT(CuTest *tc) {
+void strLCatT(CuTest *tc UNUSED) {
char s[1024];
@@ -1937,7 +1937,7 @@ void strLCatT(CuTest *tc) {
}
-void strLNCatT(CuTest *tc) {
+void strLNCatT(CuTest *tc UNUSED) {
char s[1024];
@@ -1971,7 +1971,7 @@ void strLNCatT(CuTest *tc) {
}
-void catST(CuTest *tc) {
+void catST(CuTest *tc UNUSED) {
char *s;
char *r;
@@ -1994,7 +1994,7 @@ void catST(CuTest *tc) {
}
-void iCatST(CuTest *tc) {
+void iCatST(CuTest *tc UNUSED) {
char *s;
char r[100];
@@ -2016,7 +2016,7 @@ void iCatST(CuTest *tc) {
}
-void bLCatST(CuTest *tc) {
+void bLCatST(CuTest *tc UNUSED) {
char *s;
char r[100];
@@ -2044,7 +2044,7 @@ void bLCatST(CuTest *tc) {
}
-void formatST(CuTest *tc) {
+void formatST(CuTest *tc UNUSED) {
char *s;
@@ -2058,7 +2058,7 @@ void formatST(CuTest *tc) {
}
-void appendST(CuTest *tc) {
+void appendST(CuTest *tc UNUSED) {
char *s;
@@ -2081,7 +2081,7 @@ void appendST(CuTest *tc) {
}
-void appendCharST(CuTest *tc) {
+void appendCharST(CuTest *tc UNUSED) {
char *s;
@@ -2100,7 +2100,7 @@ void appendCharST(CuTest *tc) {
}
-void appendSCharT(CuTest *tc) {
+void appendSCharT(CuTest *tc UNUSED) {
char *s;
@@ -2120,7 +2120,7 @@ void appendSCharT(CuTest *tc) {
}
-void iAppendST(CuTest *tc) {
+void iAppendST(CuTest *tc UNUSED) {
char *s;
@@ -2146,7 +2146,7 @@ void iAppendST(CuTest *tc) {
}
-void iAppendCharST(CuTest *tc) {
+void iAppendCharST(CuTest *tc UNUSED) {
char *s;
@@ -2169,7 +2169,7 @@ void iAppendCharST(CuTest *tc) {
}
-void iAppendNFreeST(CuTest *tc) {
+void iAppendNFreeST(CuTest *tc UNUSED) {
char *s;
@@ -2197,7 +2197,7 @@ void iAppendNFreeST(CuTest *tc) {
}
-void iAppendManyST(CuTest *tc) {
+void iAppendManyST(CuTest *tc UNUSED) {
char *s;
@@ -2224,7 +2224,7 @@ void iAppendManyST(CuTest *tc) {
}
-void bAppendManyST(CuTest *tc) {
+void bAppendManyST(CuTest *tc UNUSED) {
char s[100];
@@ -2245,7 +2245,7 @@ void bAppendManyST(CuTest *tc) {
}
-void bLAppendManyST(CuTest *tc) {
+void bLAppendManyST(CuTest *tc UNUSED) {
char s[100];
@@ -2273,7 +2273,7 @@ void bLAppendManyST(CuTest *tc) {
}
-void prependST(CuTest *tc) {
+void prependST(CuTest *tc UNUSED) {
char *s;
@@ -2284,7 +2284,7 @@ void prependST(CuTest *tc) {
}
-void prependCharST(CuTest *tc) {
+void prependCharST(CuTest *tc UNUSED) {
char *s;
@@ -2295,7 +2295,7 @@ void prependCharST(CuTest *tc) {
}
-void prependSCharT(CuTest *tc) {
+void prependSCharT(CuTest *tc UNUSED) {
char *s;
@@ -2306,7 +2306,7 @@ void prependSCharT(CuTest *tc) {
}
-void iPrependST(CuTest *tc) {
+void iPrependST(CuTest *tc UNUSED) {
char *s;
@@ -2332,7 +2332,7 @@ void iPrependST(CuTest *tc) {
}
-void iPrependCharST(CuTest *tc) {
+void iPrependCharST(CuTest *tc UNUSED) {
char *s;
@@ -2355,7 +2355,7 @@ void iPrependCharST(CuTest *tc) {
}
-void iPrependNFreeST(CuTest *tc) {
+void iPrependNFreeST(CuTest *tc UNUSED) {
char *s;
@@ -2383,7 +2383,7 @@ void iPrependNFreeST(CuTest *tc) {
}
-void bPrependST(CuTest *tc) {
+void bPrependST(CuTest *tc UNUSED) {
char s[100];
@@ -2407,7 +2407,7 @@ void bPrependST(CuTest *tc) {
}
-void bLPrependST(CuTest *tc) {
+void bLPrependST(CuTest *tc UNUSED) {
char s[100];
@@ -2438,7 +2438,7 @@ void bLPrependST(CuTest *tc) {
}
-void replaceST(CuTest *tc) {
+void replaceST(CuTest *tc UNUSED) {
// replace string, multiple character new delimeter
char *s = replaceS_max("#ee#ee#ad", "#","^^");
@@ -2476,7 +2476,7 @@ void replaceST(CuTest *tc) {
}
-void replaceCharSST(CuTest *tc) {
+void replaceCharSST(CuTest *tc UNUSED) {
// replace string, multiple character new delimeter
char *s = replaceCharSS("#ee#ee#ad", '#',"^^", 0);
@@ -2508,7 +2508,7 @@ void replaceCharSST(CuTest *tc) {
}
-void replaceSCharST(CuTest *tc) {
+void replaceSCharST(CuTest *tc UNUSED) {
// replace string, multiple character new delimeter
char *s = replaceSCharS("#ee#ee#ad", "#",'^',0);
@@ -2546,7 +2546,7 @@ void replaceSCharST(CuTest *tc) {
}
-void replaceCharCharST(CuTest *tc) {
+void replaceCharCharST(CuTest *tc UNUSED) {
// replace string, multiple character new delimeter
char *s = replaceCharCharS("#ee#ee#ad", '#','^', 0);
@@ -2574,7 +2574,7 @@ void replaceCharCharST(CuTest *tc) {
}
-void iReplaceST(CuTest *tc) {
+void iReplaceST(CuTest *tc UNUSED) {
char *s;
// replace string, multiple character new delimeter
@@ -2626,7 +2626,7 @@ void iReplaceST(CuTest *tc) {
}
-void iReplaceCharSST(CuTest *tc) {
+void iReplaceCharSST(CuTest *tc UNUSED) {
char *s;
// replace string, multiple character new delimeter
@@ -2668,7 +2668,7 @@ void iReplaceCharSST(CuTest *tc) {
}
-void iReplaceSCharST(CuTest *tc) {
+void iReplaceSCharST(CuTest *tc UNUSED) {
char *s;
// replace string, multiple character new delimeter
@@ -2715,7 +2715,7 @@ void iReplaceSCharST(CuTest *tc) {
}
-void iReplaceCharCharST(CuTest *tc) {
+void iReplaceCharCharST(CuTest *tc UNUSED) {
char *s;
// replace string, multiple character new delimeter
@@ -2752,7 +2752,7 @@ void iReplaceCharCharST(CuTest *tc) {
}
-void bReplaceST(CuTest *tc) {
+void bReplaceST(CuTest *tc UNUSED) {
char s[100];
// replace string, multiple character new delimeter
@@ -2793,7 +2793,7 @@ void bReplaceST(CuTest *tc) {
}
-void bLReplaceST(CuTest *tc) {
+void bLReplaceST(CuTest *tc UNUSED) {
char s[100];
// replace string, multiple character new delimeter
@@ -2842,7 +2842,7 @@ void bLReplaceST(CuTest *tc) {
}
-void replaceManyST(CuTest *tc) {
+void replaceManyST(CuTest *tc UNUSED) {
// replace string, multiple character new delimeter
char *s = replaceManyS("#ee#ee#ad", "#","^^","ad","AD");
@@ -2896,7 +2896,7 @@ void replaceManyST(CuTest *tc) {
}
-void iReplaceManyST(CuTest *tc) {
+void iReplaceManyST(CuTest *tc UNUSED) {
char *s;
// replace string, multiple character new delimeter
@@ -2971,7 +2971,7 @@ void iReplaceManyST(CuTest *tc) {
}
-void bReplaceManyST(CuTest *tc) {
+void bReplaceManyST(CuTest *tc UNUSED) {
char s[100];
// replace string, multiple character new delimeter
@@ -3030,7 +3030,7 @@ void bReplaceManyST(CuTest *tc) {
}
-void bLReplaceManyST(CuTest *tc) {
+void bLReplaceManyST(CuTest *tc UNUSED) {
char s[100];
// replace string, multiple character new delimeter
@@ -3096,7 +3096,7 @@ void bLReplaceManyST(CuTest *tc) {
}
-void eqST(CuTest *tc) {
+void eqST(CuTest *tc UNUSED) {
// identical strings
ck_assert(eqS("shee", "shee"));
@@ -3113,7 +3113,7 @@ void eqST(CuTest *tc) {
}
-void eqCharST(CuTest *tc) {
+void eqCharST(CuTest *tc UNUSED) {
// identical strings
ck_assert(eqCharS('s', "s"));
@@ -3130,7 +3130,7 @@ void eqCharST(CuTest *tc) {
}
-void eqSCharT(CuTest *tc) {
+void eqSCharT(CuTest *tc UNUSED) {
// identical strings
ck_assert(eqSChar("s", 's'));
@@ -3147,7 +3147,7 @@ void eqSCharT(CuTest *tc) {
}
-void eqIST(CuTest *tc) {
+void eqIST(CuTest *tc UNUSED) {
// identical strings
ck_assert(eqIS("Ashee", "shee", 1));
@@ -3172,7 +3172,7 @@ void eqIST(CuTest *tc) {
}
-void eqICharST(CuTest *tc) {
+void eqICharST(CuTest *tc UNUSED) {
// identical strings
ck_assert(eqICharS("Ashee", 's', 1));
@@ -3197,7 +3197,7 @@ void eqICharST(CuTest *tc) {
}
-void startsWithST(CuTest *tc) {
+void startsWithST(CuTest *tc UNUSED) {
// identical strings
ck_assert(startsWithS("shee", "shee"));
@@ -3213,7 +3213,7 @@ void startsWithST(CuTest *tc) {
}
-void startsWithCharST(CuTest *tc) {
+void startsWithCharST(CuTest *tc UNUSED) {
// identical strings
ck_assert(startsWithCharS("shee", 's'));
@@ -3230,7 +3230,7 @@ void startsWithCharST(CuTest *tc) {
}
-void endsWithST(CuTest *tc) {
+void endsWithST(CuTest *tc UNUSED) {
// identical strings
ck_assert(endsWithS("shee", "shee"));
@@ -3246,7 +3246,7 @@ void endsWithST(CuTest *tc) {
}
-void endsWithCharST(CuTest *tc) {
+void endsWithCharST(CuTest *tc UNUSED) {
// identical strings
ck_assert(endsWithCharS("shee", 'e'));
@@ -3264,7 +3264,7 @@ void endsWithCharST(CuTest *tc) {
}
-void countST(CuTest *tc) {
+void countST(CuTest *tc UNUSED) {
// positive count
ck_assert_int_eq(countS("shee", "shee"), 1);
@@ -3281,7 +3281,7 @@ void countST(CuTest *tc) {
}
-void countCharST(CuTest *tc) {
+void countCharST(CuTest *tc UNUSED) {
// positive count
ck_assert_int_eq(countCharS("shee", 's'), 1);
@@ -3300,7 +3300,7 @@ void countCharST(CuTest *tc) {
}
-void isNumberT(CuTest *tc) {
+void isNumberT(CuTest *tc UNUSED) {
// number
ck_assert(isNumber("-12.3"));
@@ -3341,7 +3341,7 @@ void isNumberT(CuTest *tc) {
}
-void isIntT(CuTest *tc) {
+void isIntT(CuTest *tc UNUSED) {
// integer
ck_assert(isInt("-123"));
@@ -3373,7 +3373,7 @@ void isIntT(CuTest *tc) {
}
-void parseIntT(CuTest *tc) {
+void parseIntT(CuTest *tc UNUSED) {
// number
ck_assert_int_eq(parseInt("123sheepy"), 123);
@@ -3389,7 +3389,7 @@ void parseIntT(CuTest *tc) {
}
-void parseIntCharT(CuTest *tc) {
+void parseIntCharT(CuTest *tc UNUSED) {
// number
ck_assert_int_eq(parseIntChar('1'),1);
@@ -3402,7 +3402,7 @@ void parseIntCharT(CuTest *tc) {
}
-void parseDoubleT(CuTest *tc) {
+void parseDoubleT(CuTest *tc UNUSED) {
// number
ck_assert_int_eq(parseDouble("123.2sheepy"), 123);
@@ -3418,7 +3418,7 @@ void parseDoubleT(CuTest *tc) {
}
-void intToST(CuTest *tc) {
+void intToST(CuTest *tc UNUSED) {
// number
char *s = intToS(123);
@@ -3431,7 +3431,7 @@ void intToST(CuTest *tc) {
}
-void bIntToST(CuTest *tc) {
+void bIntToST(CuTest *tc UNUSED) {
// number
char s[50];
@@ -3445,7 +3445,7 @@ void bIntToST(CuTest *tc) {
}
-void doubleToST(CuTest *tc) {
+void doubleToST(CuTest *tc UNUSED) {
// number
char *s = doubleToS(123.4);
@@ -3458,7 +3458,7 @@ void doubleToST(CuTest *tc) {
}
-void bDoubleToST(CuTest *tc) {
+void bDoubleToST(CuTest *tc UNUSED) {
// number
char s[256];
@@ -3472,7 +3472,7 @@ void bDoubleToST(CuTest *tc) {
}
-void lenST(CuTest *tc) {
+void lenST(CuTest *tc UNUSED) {
// string
ck_assert_uint_eq(lenS("sheepy"), 6);
@@ -3482,7 +3482,7 @@ void lenST(CuTest *tc) {
}
-void upperST(CuTest *tc) {
+void upperST(CuTest *tc UNUSED) {
// string
char *s = upperS("sheepy");
@@ -3494,7 +3494,7 @@ void upperST(CuTest *tc) {
}
-void iUpperST(CuTest *tc) {
+void iUpperST(CuTest *tc UNUSED) {
char *s;
// string
@@ -3512,7 +3512,7 @@ void iUpperST(CuTest *tc) {
}
-void bUpperST(CuTest *tc) {
+void bUpperST(CuTest *tc UNUSED) {
char s[50];
// string
@@ -3525,7 +3525,7 @@ void bUpperST(CuTest *tc) {
}
-void lowerST(CuTest *tc) {
+void lowerST(CuTest *tc UNUSED) {
// string
char *s = lowerS("SHeePY");
@@ -3537,7 +3537,7 @@ void lowerST(CuTest *tc) {
}
-void iLowerST(CuTest *tc) {
+void iLowerST(CuTest *tc UNUSED) {
char *s;
// string
@@ -3555,7 +3555,7 @@ void iLowerST(CuTest *tc) {
}
-void bLowerST(CuTest *tc) {
+void bLowerST(CuTest *tc UNUSED) {
char s[50];
// string
@@ -3568,7 +3568,7 @@ void bLowerST(CuTest *tc) {
}
-void trimST(CuTest *tc) {
+void trimST(CuTest *tc UNUSED) {
// no spaces
char *s = trimS("SHeePY");
@@ -3596,7 +3596,7 @@ void trimST(CuTest *tc) {
}
-void iTrimST(CuTest *tc) {
+void iTrimST(CuTest *tc UNUSED) {
char *s;
// no spaces
@@ -3634,7 +3634,7 @@ void iTrimST(CuTest *tc) {
}
-void bTrimST(CuTest *tc) {
+void bTrimST(CuTest *tc UNUSED) {
char s[50];
// no spaces
@@ -3663,7 +3663,7 @@ void bTrimST(CuTest *tc) {
}
-void lTrimST(CuTest *tc) {
+void lTrimST(CuTest *tc UNUSED) {
// no spaces
char *s = lTrimS("SHeePY");
@@ -3691,7 +3691,7 @@ void lTrimST(CuTest *tc) {
}
-void iLTrimST(CuTest *tc) {
+void iLTrimST(CuTest *tc UNUSED) {
char *s;
// no spaces
@@ -3729,7 +3729,7 @@ void iLTrimST(CuTest *tc) {
}
-void bLTrimST(CuTest *tc) {
+void bLTrimST(CuTest *tc UNUSED) {
char s[50];
// no spaces
@@ -3758,7 +3758,7 @@ void bLTrimST(CuTest *tc) {
}
-void rTrimST(CuTest *tc) {
+void rTrimST(CuTest *tc UNUSED) {
// no spaces
char *s = rTrimS("SHeePY");
@@ -3786,7 +3786,7 @@ void rTrimST(CuTest *tc) {
}
-void iRTrimST(CuTest *tc) {
+void iRTrimST(CuTest *tc UNUSED) {
char *s;
// no spaces
@@ -3824,7 +3824,7 @@ void iRTrimST(CuTest *tc) {
}
-void bRTrimST(CuTest *tc) {
+void bRTrimST(CuTest *tc UNUSED) {
char s[100];
// no spaces
@@ -3853,7 +3853,7 @@ void bRTrimST(CuTest *tc) {
}
-void uniqST(CuTest *tc) {
+void uniqST(CuTest *tc UNUSED) {
char *s;
@@ -3871,7 +3871,7 @@ void uniqST(CuTest *tc) {
}
-void iUniqST(CuTest *tc) {
+void iUniqST(CuTest *tc UNUSED) {
char *s;
@@ -3892,7 +3892,7 @@ void iUniqST(CuTest *tc) {
}
-void bUniqST(CuTest *tc) {
+void bUniqST(CuTest *tc UNUSED) {
char s[100];
@@ -3908,7 +3908,7 @@ void bUniqST(CuTest *tc) {
}
-void getST(CuTest *tc) {
+void getST(CuTest *tc UNUSED) {
// get char
ck_assert_uint_eq(getS("sheepy", 0), 's');
@@ -3927,7 +3927,7 @@ void getST(CuTest *tc) {
}
-void setST(CuTest *tc) {
+void setST(CuTest *tc UNUSED) {
char *s;
s = strdup("sheepy");
@@ -3960,7 +3960,7 @@ void setST(CuTest *tc) {
}
-void sliceST(CuTest *tc) {
+void sliceST(CuTest *tc UNUSED) {
// slice
char *s = sliceS("sheepy", 0,2);
@@ -4000,7 +4000,7 @@ void sliceST(CuTest *tc) {
}
-void iSliceST(CuTest *tc) {
+void iSliceST(CuTest *tc UNUSED) {
char *s;
// slice
@@ -4061,7 +4061,7 @@ void iSliceST(CuTest *tc) {
}
-void bSliceST(CuTest *tc) {
+void bSliceST(CuTest *tc UNUSED) {
char s[100];
// slice
@@ -4108,7 +4108,7 @@ void bSliceST(CuTest *tc) {
}
-void insertST(CuTest *tc) {
+void insertST(CuTest *tc UNUSED) {
char *s;
@@ -4157,7 +4157,7 @@ void insertST(CuTest *tc) {
}
-void insertNFreeST(CuTest *tc) {
+void insertNFreeST(CuTest *tc UNUSED) {
char *s, *a;
@@ -4208,7 +4208,7 @@ void insertNFreeST(CuTest *tc) {
}
-void iInsertST(CuTest *tc) {
+void iInsertST(CuTest *tc UNUSED) {
char *s;
@@ -4269,7 +4269,7 @@ void iInsertST(CuTest *tc) {
}
-void iInsertNFreeST(CuTest *tc) {
+void iInsertNFreeST(CuTest *tc UNUSED) {
char *s, *a, *r;
@@ -4337,7 +4337,7 @@ void iInsertNFreeST(CuTest *tc) {
}
-void bInsertST(CuTest *tc) {
+void bInsertST(CuTest *tc UNUSED) {
char s[100];
@@ -4384,7 +4384,7 @@ void bInsertST(CuTest *tc) {
}
-void bLInsertST(CuTest *tc) {
+void bLInsertST(CuTest *tc UNUSED) {
char s[100];
@@ -4438,7 +4438,7 @@ void bLInsertST(CuTest *tc) {
}
-void injectST(CuTest *tc) {
+void injectST(CuTest *tc UNUSED) {
char *s;
@@ -4479,7 +4479,7 @@ void injectST(CuTest *tc) {
}
-void iInjectST(CuTest *tc) {
+void iInjectST(CuTest *tc UNUSED) {
char *s;
@@ -4530,7 +4530,7 @@ void iInjectST(CuTest *tc) {
}
-void bInjectST(CuTest *tc) {
+void bInjectST(CuTest *tc UNUSED) {
char s[100];
@@ -4569,7 +4569,7 @@ void bInjectST(CuTest *tc) {
}
-void bLInjectST(CuTest *tc) {
+void bLInjectST(CuTest *tc UNUSED) {
char s[100];
@@ -4615,7 +4615,7 @@ void bLInjectST(CuTest *tc) {
}
-void delST(CuTest *tc) {
+void delST(CuTest *tc UNUSED) {
// del
char *s = delS("sheepy", 0,2);
@@ -4659,7 +4659,7 @@ void delST(CuTest *tc) {
}
-void iDelST(CuTest *tc) {
+void iDelST(CuTest *tc UNUSED) {
char *s;
// del
@@ -4723,7 +4723,7 @@ void iDelST(CuTest *tc) {
}
-void bDelST(CuTest *tc) {
+void bDelST(CuTest *tc UNUSED) {
char s[100];
// del
@@ -4773,7 +4773,7 @@ void bDelST(CuTest *tc) {
}
-void findST(CuTest *tc) {
+void findST(CuTest *tc UNUSED) {
// find string in the middle
ck_assert_str_eq(findS("sheepy", "ee"), "eepy");
@@ -4787,7 +4787,7 @@ void findST(CuTest *tc) {
}
-void findCharST(CuTest *tc) {
+void findCharST(CuTest *tc UNUSED) {
// find string in the middle
ck_assert_str_eq(findCharS("sheepy", 'e'), "eepy");
@@ -4801,7 +4801,7 @@ void findCharST(CuTest *tc) {
}
-void hasST(CuTest *tc) {
+void hasST(CuTest *tc UNUSED) {
// find string in the middle
ck_assert(hasS("sheepy", "ee"));
@@ -4815,7 +4815,7 @@ void hasST(CuTest *tc) {
}
-void hasCharST(CuTest *tc) {
+void hasCharST(CuTest *tc UNUSED) {
// find string in the middle
ck_assert(hasCharS("sheepy", 'e'));
@@ -4829,7 +4829,7 @@ void hasCharST(CuTest *tc) {
}
-void emptySFT(CuTest *tc) {
+void emptySFT(CuTest *tc UNUSED) {
char *s;
@@ -4841,7 +4841,7 @@ void emptySFT(CuTest *tc) {
}
-void iEmptySFT(CuTest *tc) {
+void iEmptySFT(CuTest *tc UNUSED) {
char *s;
@@ -4861,7 +4861,7 @@ void iEmptySFT(CuTest *tc) {
}
-void isEmptyST(CuTest *tc) {
+void isEmptyST(CuTest *tc UNUSED) {
char *s;
@@ -4879,7 +4879,7 @@ void isEmptyST(CuTest *tc) {
}
-void isBlankST(CuTest *tc) {
+void isBlankST(CuTest *tc UNUSED) {
char *s;
@@ -4899,7 +4899,7 @@ void isBlankST(CuTest *tc) {
}
-void listEmptySFT(CuTest *tc) {
+void listEmptySFT(CuTest *tc UNUSED) {
char **l;
@@ -4911,7 +4911,7 @@ void listEmptySFT(CuTest *tc) {
}
-void iListEmptySFT(CuTest *tc) {
+void iListEmptySFT(CuTest *tc UNUSED) {
char **l;
@@ -4931,7 +4931,7 @@ void iListEmptySFT(CuTest *tc) {
}
-void listIsEmptyST(CuTest *tc) {
+void listIsEmptyST(CuTest *tc UNUSED) {
char **l;
@@ -4950,7 +4950,7 @@ void listIsEmptyST(CuTest *tc) {
}
-void listIsBlankST(CuTest *tc) {
+void listIsBlankST(CuTest *tc UNUSED) {
char **l;
@@ -4972,7 +4972,7 @@ void listIsBlankST(CuTest *tc) {
}
-void listLengthST(CuTest *tc) {
+void listLengthST(CuTest *tc UNUSED) {
char **l;
@@ -4993,7 +4993,7 @@ void listLengthST(CuTest *tc) {
}
-void listCreateST(CuTest *tc) {
+void listCreateST(CuTest *tc UNUSED) {
char **l;
@@ -5013,7 +5013,7 @@ void listCreateST(CuTest *tc) {
}
-void listFromArrayST(CuTest *tc) {
+void listFromArrayST(CuTest *tc UNUSED) {
char **l = NULL;
char *array[] = {"1", "22", "333"};
@@ -5042,7 +5042,7 @@ void listFromArrayST(CuTest *tc) {
}
-void listPushST(CuTest *tc) {
+void listPushST(CuTest *tc UNUSED) {
char **l = NULL;
@@ -5074,7 +5074,7 @@ void listPushST(CuTest *tc) {
}
-void iListPushST(CuTest *tc) {
+void iListPushST(CuTest *tc UNUSED) {
char **l = NULL;
char *s;
@@ -5110,7 +5110,7 @@ void iListPushST(CuTest *tc) {
}
-void listPopST(CuTest *tc) {
+void listPopST(CuTest *tc UNUSED) {
char **l = NULL;
char *s;
@@ -5139,7 +5139,7 @@ void listPopST(CuTest *tc) {
}
-void listPrependST(CuTest *tc) {
+void listPrependST(CuTest *tc UNUSED) {
char **l = NULL;
@@ -5171,7 +5171,7 @@ void listPrependST(CuTest *tc) {
}
-void iListPrependST(CuTest *tc) {
+void iListPrependST(CuTest *tc UNUSED) {
char **l = NULL;
char *s;
@@ -5207,7 +5207,7 @@ void iListPrependST(CuTest *tc) {
}
-void listDequeueST(CuTest *tc) {
+void listDequeueST(CuTest *tc UNUSED) {
char **l = NULL;
char *s;
@@ -5236,7 +5236,7 @@ void listDequeueST(CuTest *tc) {
}
-void listFreeST(CuTest *tc) {
+void listFreeST(CuTest *tc UNUSED) {
// not possible to know if a pointer is already freed
char **l = listCreateS("we","sd");
@@ -5250,7 +5250,7 @@ void listFreeST(CuTest *tc) {
}
-void listFreeManyST(CuTest *tc) {
+void listFreeManyST(CuTest *tc UNUSED) {
// not possible to know if a pointer is already freed
char **l1 = listCreateS("we","sd");
@@ -5260,7 +5260,7 @@ void listFreeManyST(CuTest *tc) {
}
-void listPrintST(CuTest *tc) {
+void listPrintST(CuTest *tc UNUSED) {
char **l;
@@ -5275,7 +5275,7 @@ void listPrintST(CuTest *tc) {
}
-void listForEachT(CuTest *tc) {
+void listForEachT(CuTest *tc UNUSED) {
char **l = NULL;
char **l2 = NULL;
@@ -5296,7 +5296,7 @@ void listForEachT(CuTest *tc) {
}
-void listEnumerateT(CuTest *tc) {
+void listEnumerateT(CuTest *tc UNUSED) {
char **l = NULL;
char **l2 = NULL;
@@ -5318,7 +5318,7 @@ void listEnumerateT(CuTest *tc) {
}
-void listSortST(CuTest *tc) {
+void listSortST(CuTest *tc UNUSED) {
char **l = NULL;
char **l2;
@@ -5354,7 +5354,7 @@ void listSortST(CuTest *tc) {
}
-void iListSortST(CuTest *tc) {
+void iListSortST(CuTest *tc UNUSED) {
char **l = NULL;
@@ -5390,7 +5390,7 @@ void iListSortST(CuTest *tc) {
}
-void readTextT(CuTest *tc) {
+void readTextT(CuTest *tc UNUSED) {
char **l;
@@ -5415,7 +5415,7 @@ void readTextT(CuTest *tc) {
}
-void readStreamT(CuTest *tc) {
+void readStreamT(CuTest *tc UNUSED) {
char **l;
FILE *fp;
@@ -5441,7 +5441,7 @@ void readStreamT(CuTest *tc) {
}
-void writeTextT(CuTest *tc) {
+void writeTextT(CuTest *tc UNUSED) {
char **l;
bool r;
@@ -5473,7 +5473,7 @@ void writeTextT(CuTest *tc) {
}
-void writeStreamT(CuTest *tc) {
+void writeStreamT(CuTest *tc UNUSED) {
char **l;
FILE *fp;
@@ -5505,7 +5505,7 @@ void writeStreamT(CuTest *tc) {
}
-void appendTextT(CuTest *tc) {
+void appendTextT(CuTest *tc UNUSED) {
char **l;
bool r;
@@ -5541,7 +5541,7 @@ void appendTextT(CuTest *tc) {
}
-void listGetST(CuTest *tc) {
+void listGetST(CuTest *tc UNUSED) {
char **l = NULL;
@@ -5579,7 +5579,7 @@ void listGetST(CuTest *tc) {
}
-void iListGetST(CuTest *tc) {
+void iListGetST(CuTest *tc UNUSED) {
char **l = NULL;
@@ -5611,7 +5611,7 @@ void iListGetST(CuTest *tc) {
}
-void listSetST(CuTest *tc) {
+void listSetST(CuTest *tc UNUSED) {
char **l = NULL;
@@ -5661,7 +5661,7 @@ void listSetST(CuTest *tc) {
}
-void iListSetST(CuTest *tc) {
+void iListSetST(CuTest *tc UNUSED) {
char **l = NULL;
char *s;
@@ -5718,7 +5718,7 @@ void iListSetST(CuTest *tc) {
}
-void tokST(CuTest *tc) {
+void tokST(CuTest *tc UNUSED) {
// string
char *s;
@@ -5751,7 +5751,7 @@ void tokST(CuTest *tc) {
}
-void splitT(CuTest *tc) {
+void splitT(CuTest *tc UNUSED) {
char **l;
@@ -5810,7 +5810,7 @@ void splitT(CuTest *tc) {
}
-void joinT(CuTest *tc) {
+void joinT(CuTest *tc UNUSED) {
char **l;
char *s;
@@ -5840,7 +5840,7 @@ void joinT(CuTest *tc) {
}
-void bJoinT(CuTest *tc) {
+void bJoinT(CuTest *tc UNUSED) {
char **l;
char s[100];
@@ -5869,7 +5869,7 @@ void bJoinT(CuTest *tc) {
}
-void bLJoinT(CuTest *tc) {
+void bLJoinT(CuTest *tc UNUSED) {
char **l;
char s[100];
@@ -5904,7 +5904,7 @@ void bLJoinT(CuTest *tc) {
}
-void extractST(CuTest *tc) {
+void extractST(CuTest *tc UNUSED) {
char **l;
@@ -5947,7 +5947,7 @@ void extractST(CuTest *tc) {
}
-void listDupST(CuTest *tc) {
+void listDupST(CuTest *tc UNUSED) {
char **l = NULL;
char **l2;
@@ -5975,7 +5975,7 @@ void listDupST(CuTest *tc) {
}
-void iListDupST(CuTest *tc) {
+void iListDupST(CuTest *tc UNUSED) {
char **l = NULL;
char **l2;
@@ -6003,7 +6003,7 @@ void iListDupST(CuTest *tc) {
}
-void listReverseST(CuTest *tc) {
+void listReverseST(CuTest *tc UNUSED) {
char **l = NULL;
char **l2;
@@ -6031,7 +6031,7 @@ void listReverseST(CuTest *tc) {
}
-void iListReverseST(CuTest *tc) {
+void iListReverseST(CuTest *tc UNUSED) {
char **l = NULL;
@@ -6060,7 +6060,7 @@ void iListReverseST(CuTest *tc) {
}
-void listCatST(CuTest *tc) {
+void listCatST(CuTest *tc UNUSED) {
char **l;
char **l2;
@@ -6091,7 +6091,7 @@ void listCatST(CuTest *tc) {
}
-void listAppendST(CuTest *tc) {
+void listAppendST(CuTest *tc UNUSED) {
char **l = NULL;
char **l2 = NULL;
@@ -6163,7 +6163,7 @@ void listAppendST(CuTest *tc) {
}
-void iListAppendST(CuTest *tc) {
+void iListAppendST(CuTest *tc UNUSED) {
char **l = NULL;
char **l2 = NULL;
@@ -6249,7 +6249,7 @@ void iListAppendST(CuTest *tc) {
}
-void iListAppendNSmashST(CuTest *tc) {
+void iListAppendNSmashST(CuTest *tc UNUSED) {
char **l = NULL;
char **l2 = NULL;
@@ -6336,7 +6336,7 @@ void iListAppendNSmashST(CuTest *tc) {
}
-void listAddST(CuTest *tc) {
+void listAddST(CuTest *tc UNUSED) {
char **l = NULL;
char **l2 = NULL;
@@ -6392,7 +6392,7 @@ void listAddST(CuTest *tc) {
}
-void listSliceST(CuTest *tc) {
+void listSliceST(CuTest *tc UNUSED) {
char **l = NULL;
char **l2;
@@ -6450,7 +6450,7 @@ void listSliceST(CuTest *tc) {
}
-void iListCopyST(CuTest *tc) {
+void iListCopyST(CuTest *tc UNUSED) {
char **l = NULL;
char **l2;
@@ -6520,7 +6520,7 @@ void iListCopyST(CuTest *tc) {
}
-void iListSliceST(CuTest *tc) {
+void iListSliceST(CuTest *tc UNUSED) {
char **l = NULL;
@@ -6583,7 +6583,7 @@ void iListSliceST(CuTest *tc) {
}
-void listInsertST(CuTest *tc) {
+void listInsertST(CuTest *tc UNUSED) {
char **l;
char **l2;
@@ -6651,7 +6651,7 @@ void listInsertST(CuTest *tc) {
}
-void iListInsertST(CuTest *tc) {
+void iListInsertST(CuTest *tc UNUSED) {
char **l;
char **l2;
@@ -6739,7 +6739,7 @@ void iListInsertST(CuTest *tc) {
}
-void iListInsertNFreeST(CuTest *tc) {
+void iListInsertNFreeST(CuTest *tc UNUSED) {
char **l, **r;
char **l2;
@@ -6833,7 +6833,7 @@ void iListInsertNFreeST(CuTest *tc) {
}
-void listInjectST(CuTest *tc) {
+void listInjectST(CuTest *tc UNUSED) {
char **l;
char **r;
@@ -6894,7 +6894,7 @@ void listInjectST(CuTest *tc) {
}
-void iListInjectST(CuTest *tc) {
+void iListInjectST(CuTest *tc UNUSED) {
char **l;
@@ -6964,7 +6964,7 @@ void iListInjectST(CuTest *tc) {
}
-void listDelST(CuTest *tc) {
+void listDelST(CuTest *tc UNUSED) {
char **l = NULL;
char **l2;
@@ -7032,10 +7032,9 @@ void listDelST(CuTest *tc) {
}
-void iListDelST(CuTest *tc) {
+void iListDelST(CuTest *tc UNUSED) {
char **l = NULL;
- char **l2;
// list negative index
listPushS(&l, "1");
@@ -7117,7 +7116,7 @@ void iListDelST(CuTest *tc) {
}
-void execOutT(CuTest *tc) {
+void execOutT(CuTest *tc UNUSED) {
char **l;
@@ -7138,7 +7137,7 @@ void execOutT(CuTest *tc) {
}
-void listEqST(CuTest *tc) {
+void listEqST(CuTest *tc UNUSED) {
char **l = NULL;
char **l2;
@@ -7167,7 +7166,7 @@ void listEqST(CuTest *tc) {
}
-void listHasST(CuTest *tc) {
+void listHasST(CuTest *tc UNUSED) {
char **l = NULL;
@@ -7190,7 +7189,7 @@ void listHasST(CuTest *tc) {
}
-void listIndexOfST(CuTest *tc) {
+void listIndexOfST(CuTest *tc UNUSED) {
char **l = NULL;
@@ -7213,7 +7212,7 @@ void listIndexOfST(CuTest *tc) {
}
-void listBinarySearchST(CuTest *tc) {
+void listBinarySearchST(CuTest *tc UNUSED) {
char **l = NULL;
@@ -7238,7 +7237,7 @@ void listBinarySearchST(CuTest *tc) {
}
-void listUniqST(CuTest *tc) {
+void listUniqST(CuTest *tc UNUSED) {
char **l = NULL;
char **l2;
@@ -7281,7 +7280,7 @@ void listUniqST(CuTest *tc) {
}
-void iListUniqST(CuTest *tc) {
+void iListUniqST(CuTest *tc UNUSED) {
char **l = NULL;
char **l2;
@@ -7332,7 +7331,7 @@ void iListUniqST(CuTest *tc) {
}
-void listCompactST(CuTest *tc) {
+void listCompactST(CuTest *tc UNUSED) {
char **l = NULL;
char **l2;
@@ -7360,7 +7359,7 @@ void listCompactST(CuTest *tc) {
}
-void iListCompactST(CuTest *tc) {
+void iListCompactST(CuTest *tc UNUSED) {
char **l = NULL;
char **l2;
@@ -7401,7 +7400,7 @@ void iListCompactST(CuTest *tc) {
}
-void listEmptyFT(CuTest *tc) {
+void listEmptyFT(CuTest *tc UNUSED) {
void **l = NULL;
@@ -7413,7 +7412,7 @@ void listEmptyFT(CuTest *tc) {
}
-void iListEmptyFT(CuTest *tc) {
+void iListEmptyFT(CuTest *tc UNUSED) {
void **l = NULL;
char *s1 = "lib";
@@ -7436,7 +7435,7 @@ void iListEmptyFT(CuTest *tc) {
}
-void listIsEmptyT(CuTest *tc) {
+void listIsEmptyT(CuTest *tc UNUSED) {
void **l = NULL;
char *s1 = "lib";
@@ -7458,7 +7457,7 @@ void listIsEmptyT(CuTest *tc) {
}
-void listCreateT(CuTest *tc) {
+void listCreateT(CuTest *tc UNUSED) {
void **l;
char *s1 = "sheepy";
@@ -7480,7 +7479,7 @@ void listCreateT(CuTest *tc) {
}
-void listFromArrayT(CuTest *tc) {
+void listFromArrayT(CuTest *tc UNUSED) {
void **l = NULL;
char *array[] = {"1", "22", "333"};
@@ -7509,7 +7508,7 @@ void listFromArrayT(CuTest *tc) {
}
-void listPushT(CuTest *tc) {
+void listPushT(CuTest *tc UNUSED) {
void **l = NULL;
char *s = "sheepy";
@@ -7543,7 +7542,7 @@ void listPushT(CuTest *tc) {
}
-void listPopT(CuTest *tc) {
+void listPopT(CuTest *tc UNUSED) {
void **l = NULL;
char *s1 = "sheepy";
@@ -7572,7 +7571,7 @@ void listPopT(CuTest *tc) {
}
-void listPrependT(CuTest *tc) {
+void listPrependT(CuTest *tc UNUSED) {
void **l = NULL;
char *s1 = "sheepy";
@@ -7606,7 +7605,7 @@ void listPrependT(CuTest *tc) {
}
-void listDequeueT(CuTest *tc) {
+void listDequeueT(CuTest *tc UNUSED) {
void **l = NULL;
char *s1 = "sheepy";
@@ -7635,7 +7634,7 @@ void listDequeueT(CuTest *tc) {
}
-void listFreeT(CuTest *tc) {
+void listFreeT(CuTest *tc UNUSED) {
void **l = NULL;
char *s1 = strdup("sheepy");
@@ -7653,7 +7652,7 @@ void listFreeT(CuTest *tc) {
}
-void listFreeManyT(CuTest *tc) {
+void listFreeManyT(CuTest *tc UNUSED) {
void **l1 = NULL;
char *s1 = strdup("sheepy");
@@ -7667,7 +7666,7 @@ void listFreeManyT(CuTest *tc) {
}
-void listLengthT(CuTest *tc) {
+void listLengthT(CuTest *tc UNUSED) {
void **l;
@@ -7688,7 +7687,7 @@ void listLengthT(CuTest *tc) {
}
-void listGetT(CuTest *tc) {
+void listGetT(CuTest *tc UNUSED) {
void **l = NULL;
char *s1 = "1";
@@ -7724,7 +7723,7 @@ void listGetT(CuTest *tc) {
}
-void listSetT(CuTest *tc) {
+void listSetT(CuTest *tc UNUSED) {
void **l = NULL;
char *s1 = "1";
@@ -7774,7 +7773,7 @@ void listSetT(CuTest *tc) {
}
-void listDupT(CuTest *tc) {
+void listDupT(CuTest *tc UNUSED) {
void **l = NULL;
void **l2;
@@ -7806,7 +7805,7 @@ void listDupT(CuTest *tc) {
}
-void listReverseT(CuTest *tc) {
+void listReverseT(CuTest *tc UNUSED) {
void **l = NULL;
void **l2;
@@ -7838,7 +7837,7 @@ void listReverseT(CuTest *tc) {
}
-void iListReverseT(CuTest *tc) {
+void iListReverseT(CuTest *tc UNUSED) {
void **l = NULL;
char *s1 = "1";
@@ -7871,7 +7870,7 @@ void iListReverseT(CuTest *tc) {
}
-void listCatT(CuTest *tc) {
+void listCatT(CuTest *tc UNUSED) {
void **l = NULL;
void **l2 = NULL;
@@ -7910,7 +7909,7 @@ void listCatT(CuTest *tc) {
}
-void listAppendT(CuTest *tc) {
+void listAppendT(CuTest *tc UNUSED) {
void **l = NULL;
void **l2 = NULL;
@@ -8003,7 +8002,7 @@ void listAppendT(CuTest *tc) {
}
-void listAddT(CuTest *tc) {
+void listAddT(CuTest *tc UNUSED) {
void **l = NULL;
void **l2 = NULL;
@@ -8079,7 +8078,7 @@ void listAddT(CuTest *tc) {
}
-void listSliceT(CuTest *tc) {
+void listSliceT(CuTest *tc UNUSED) {
void **l = NULL;
void **l2;
@@ -8153,7 +8152,7 @@ void listSliceT(CuTest *tc) {
}
-void iListSliceT(CuTest *tc) {
+void iListSliceT(CuTest *tc UNUSED) {
void **l = NULL;
char *s1 = "1";
@@ -8220,7 +8219,7 @@ void iListSliceT(CuTest *tc) {
}
-void listInsertT(CuTest *tc) {
+void listInsertT(CuTest *tc UNUSED) {
void **l;
void **l2;
@@ -8287,7 +8286,7 @@ void listInsertT(CuTest *tc) {
}
-void iListInsertT(CuTest *tc) {
+void iListInsertT(CuTest *tc UNUSED) {
void **l;
void **l2;
@@ -8372,7 +8371,7 @@ void iListInsertT(CuTest *tc) {
}
-void listDelT(CuTest *tc) {
+void listDelT(CuTest *tc UNUSED) {
void **l = NULL;
void **l2;
@@ -8444,10 +8443,9 @@ void listDelT(CuTest *tc) {
}
-void iListDelT(CuTest *tc) {
+void iListDelT(CuTest *tc UNUSED) {
void **l = NULL;
- void **l2;
char *s1 = "1";
char *s2 = "22";
char *s3 = "333";
@@ -8534,7 +8532,7 @@ void iListDelT(CuTest *tc) {
ringMake(ringTestT, int, 4);
-void ringInitT(CuTest *tc) {
+void ringInitT(CuTest *tc UNUSED) {
ringTestT rg;
@@ -8547,7 +8545,7 @@ void ringInitT(CuTest *tc) {
}
-void ringIsEmptyT(CuTest *tc) {
+void ringIsEmptyT(CuTest *tc UNUSED) {
ringTestT rg;
ringInit(&rg, 4);
@@ -8566,7 +8564,7 @@ void ringIsEmptyT(CuTest *tc) {
}
-void ringIsFullT(CuTest *tc) {
+void ringIsFullT(CuTest *tc UNUSED) {
ringTestT rg;
ringInit(&rg, 4);
@@ -8587,7 +8585,7 @@ void ringIsFullT(CuTest *tc) {
}
-void ringCountT(CuTest *tc) {
+void ringCountT(CuTest *tc UNUSED) {
ringTestT rg;
ringInit(&rg, 4);
@@ -8609,7 +8607,7 @@ void ringCountT(CuTest *tc) {
}
-void ringPushT(CuTest *tc) {
+void ringPushT(CuTest *tc UNUSED) {
ringTestT rg;
ringInit(&rg, 4);
@@ -8629,7 +8627,7 @@ void ringPushT(CuTest *tc) {
}
-void ringPopT(CuTest *tc) {
+void ringPopT(CuTest *tc UNUSED) {
ringTestT rg;
ringInit(&rg, 4);
@@ -8652,7 +8650,7 @@ void ringPopT(CuTest *tc) {
}
-void ringPrependT(CuTest *tc) {
+void ringPrependT(CuTest *tc UNUSED) {
ringTestT rg;
ringInit(&rg, 4);
@@ -8671,7 +8669,7 @@ void ringPrependT(CuTest *tc) {
}
-void ringDequeueT(CuTest *tc) {
+void ringDequeueT(CuTest *tc UNUSED) {
ringTestT rg;
ringInit(&rg, 4);
@@ -8700,11 +8698,11 @@ ringMake(chanT, int, chanMax);
typedef struct {int slot; int a; chanT *c;} AArgs;
// declaration of fibers type fiberA
-void fiberATest(int thisSlot) {
+void fiberATest(int thisSlot UNUSED) {
return;
}
-void fiberAddT(CuTest *tc) {
+void fiberAddT(CuTest *tc UNUSED) {
staticArrayInit(fibers.L);
staticArrayInit(fibers.startL);
@@ -8721,7 +8719,7 @@ void fiberAddT(CuTest *tc) {
}
-void fiberPrependT(CuTest *tc) {
+void fiberPrependT(CuTest *tc UNUSED) {
staticArrayInit(fibers.L);
staticArrayInit(fibers.startL);
@@ -8738,7 +8736,7 @@ void fiberPrependT(CuTest *tc) {
}
-void schedulerT(CuTest *tc) {
+void schedulerT(CuTest *tc UNUSED) {
staticArrayInit(fibers.L);
staticArrayInit(fibers.startL);
@@ -8761,14 +8759,14 @@ void schedulerT(CuTest *tc) {
}
-void getMonotonicTimeT(CuTest *tc) {
+void getMonotonicTimeT(CuTest *tc UNUSED) {
getMonotonicTime();
}
-void nanoSleepT(CuTest *tc) {
+void nanoSleepT(CuTest *tc UNUSED) {
int r;
@@ -8782,7 +8780,7 @@ void nanoSleepT(CuTest *tc) {
-int main(int n, char**v) {
+int main(int n UNUSED, char**v UNUSED) {
// disable btrace to make the test run faster
btraceDisable();
CuString *output = CuStringNew();
diff --git a/src/libsheepySmallCuTest.c b/src/libsheepySmallCuTest.c
@@ -17,7 +17,7 @@
#include "libsheepySmall.h"
-void isSTypeFT(CuTest *tc) {
+void isSTypeFT(CuTest *tc UNUSED) {
sBoolt *b;
b = allocSBool(false);
@@ -28,7 +28,7 @@ void isSTypeFT(CuTest *tc) {
}
-void sSizeT(CuTest *tc) {
+void sSizeT(CuTest *tc UNUSED) {
sBoolt *b;
b = allocSBool(false);
@@ -106,7 +106,7 @@ void sSizeT(CuTest *tc) {
-void allocSBoolT(CuTest *tc) {
+void allocSBoolT(CuTest *tc UNUSED) {
sBoolt *o;
o = allocSBool(false);
@@ -117,7 +117,7 @@ void allocSBoolT(CuTest *tc) {
}
-void allocSContainerT(CuTest *tc) {
+void allocSContainerT(CuTest *tc UNUSED) {
sContainert *o;
o = allocSContainer(strdup("sheepy"));
@@ -129,7 +129,7 @@ void allocSContainerT(CuTest *tc) {
}
-void allocSDictT(CuTest *tc) {
+void allocSDictT(CuTest *tc UNUSED) {
sDictt *o;
o = allocSDict();
@@ -140,7 +140,7 @@ void allocSDictT(CuTest *tc) {
}
-void allocSDoubleT(CuTest *tc) {
+void allocSDoubleT(CuTest *tc UNUSED) {
sDoublet *o;
o = allocSDouble(1.5);
@@ -152,7 +152,7 @@ void allocSDoubleT(CuTest *tc) {
}
-void allocSIntT(CuTest *tc) {
+void allocSIntT(CuTest *tc UNUSED) {
sIntt *o;
o = allocSInt(1);
@@ -163,7 +163,7 @@ void allocSIntT(CuTest *tc) {
}
-void allocSStringT(CuTest *tc) {
+void allocSStringT(CuTest *tc UNUSED) {
sStringt *o;
o = allocSStringTiny("sheepy");
@@ -174,7 +174,7 @@ void allocSStringT(CuTest *tc) {
}
-void allocSArrayT(CuTest *tc) {
+void allocSArrayT(CuTest *tc UNUSED) {
sArrayt *o;
o = allocSArray();
@@ -185,7 +185,7 @@ void allocSArrayT(CuTest *tc) {
}
-void allocSUndefinedT(CuTest *tc) {
+void allocSUndefinedT(CuTest *tc UNUSED) {
sUndefinedt *o;
o = allocSUndefined();
@@ -195,7 +195,7 @@ void allocSUndefinedT(CuTest *tc) {
}
-void allocSBytesT(CuTest *tc) {
+void allocSBytesT(CuTest *tc UNUSED) {
sBytest *o;
o = allocSBytes();
@@ -206,7 +206,7 @@ void allocSBytesT(CuTest *tc) {
}
-void sFreeT(CuTest *tc) {
+void sFreeT(CuTest *tc UNUSED) {
// dict
sDictt *o = allocSDict();
@@ -228,7 +228,7 @@ void sFreeT(CuTest *tc) {
}
-void sDictFreeT(CuTest *tc) {
+void sDictFreeT(CuTest *tc UNUSED) {
sDictt *o = allocSDict();
sDictt *d = allocSDict();
@@ -240,7 +240,7 @@ void sDictFreeT(CuTest *tc) {
}
-void sArrayFreeT(CuTest *tc) {
+void sArrayFreeT(CuTest *tc UNUSED) {
sArrayt *o = allocSArray();
sDictt *d = allocSDict();
@@ -252,7 +252,7 @@ void sArrayFreeT(CuTest *tc) {
}
-void sBoolToStringT(CuTest *tc) {
+void sBoolToStringT(CuTest *tc UNUSED) {
sBoolt *o;
o = allocSBool(false);
@@ -268,7 +268,7 @@ void sBoolToStringT(CuTest *tc) {
}
-void sContainerToStringT(CuTest *tc) {
+void sContainerToStringT(CuTest *tc UNUSED) {
sContainert *o;
o = allocSContainer(strdup("sheepy"));
@@ -281,7 +281,7 @@ void sContainerToStringT(CuTest *tc) {
}
-void sDictToStringT(CuTest *tc) {
+void sDictToStringT(CuTest *tc UNUSED) {
sDictt *o;
o = allocSDict();
@@ -304,7 +304,7 @@ void sDictToStringT(CuTest *tc) {
}
-void sDoubleToStringT(CuTest *tc) {
+void sDoubleToStringT(CuTest *tc UNUSED) {
sDoublet *o;
o = allocSDouble(1.5);
@@ -316,7 +316,7 @@ void sDoubleToStringT(CuTest *tc) {
}
-void sIntToStringT(CuTest *tc) {
+void sIntToStringT(CuTest *tc UNUSED) {
sIntt *o;
o = allocSInt(1);
@@ -328,7 +328,7 @@ void sIntToStringT(CuTest *tc) {
}
-void sStringToStringT(CuTest *tc) {
+void sStringToStringT(CuTest *tc UNUSED) {
sStringt *o;
o = allocSStringTiny("sheepy");
@@ -340,7 +340,7 @@ void sStringToStringT(CuTest *tc) {
}
-void sArrayToStringT(CuTest *tc) {
+void sArrayToStringT(CuTest *tc UNUSED) {
sArrayt *o;
o = allocSArray();
@@ -373,7 +373,7 @@ void sArrayToStringT(CuTest *tc) {
}
-void sUndefinedToStringT(CuTest *tc) {
+void sUndefinedToStringT(CuTest *tc UNUSED) {
sUndefinedt *o;
o = allocSUndefined();
@@ -385,7 +385,7 @@ void sUndefinedToStringT(CuTest *tc) {
}
-void sBytesToStringT(CuTest *tc) {
+void sBytesToStringT(CuTest *tc UNUSED) {
sBytest *o;
o = allocSBytes();
@@ -403,7 +403,7 @@ void sBytesToStringT(CuTest *tc) {
}
-void sToStringT(CuTest *tc) {
+void sToStringT(CuTest *tc UNUSED) {
sBoolt *b;
b = allocSBool(false);
@@ -484,7 +484,7 @@ void sToStringT(CuTest *tc) {
}
-void sTypesT(CuTest *tc) {
+void sTypesT(CuTest *tc UNUSED) {
sDictt *o;
o = allocSDict();
@@ -504,7 +504,7 @@ void sTypesT(CuTest *tc) {
}
-void sTypesToBytesT(CuTest *tc) {
+void sTypesToBytesT(CuTest *tc UNUSED) {
// dict
sDictt *o;
@@ -556,7 +556,7 @@ void sTypesToBytesT(CuTest *tc) {
}
-void sDictTypeStringsT(CuTest *tc) {
+void sDictTypeStringsT(CuTest *tc UNUSED) {
sDictt *o;
o = allocSDict();
@@ -578,7 +578,7 @@ void sDictTypeStringsT(CuTest *tc) {
}
-void sDictTypesT(CuTest *tc) {
+void sDictTypesT(CuTest *tc UNUSED) {
sDictt *o;
o = allocSDict();
@@ -600,7 +600,7 @@ void sDictTypesT(CuTest *tc) {
}
-void sArrayTypeStringsT(CuTest *tc) {
+void sArrayTypeStringsT(CuTest *tc UNUSED) {
sArrayt *o;
o = allocSArray();
@@ -625,7 +625,7 @@ void sArrayTypeStringsT(CuTest *tc) {
}
-void sArrayTypesT(CuTest *tc) {
+void sArrayTypesT(CuTest *tc UNUSED) {
sArrayt *o;
o = allocSArray();
@@ -650,7 +650,7 @@ void sArrayTypesT(CuTest *tc) {
}
-void sDuplicateT(CuTest *tc) {
+void sDuplicateT(CuTest *tc UNUSED) {
char *S;
sBoolt *b, *b2;
@@ -759,7 +759,7 @@ void sDuplicateT(CuTest *tc) {
}
-void sDictDuplicateT(CuTest *tc) {
+void sDictDuplicateT(CuTest *tc UNUSED) {
sDictt *o, *d;
o = allocSDict();
@@ -781,7 +781,7 @@ void sDictDuplicateT(CuTest *tc) {
}
-void sArrayDuplicateT(CuTest *tc) {
+void sArrayDuplicateT(CuTest *tc UNUSED) {
sArrayt *a = allocSArray();
sBoolt *b = allocSBool(false);
@@ -802,7 +802,7 @@ void sArrayDuplicateT(CuTest *tc) {
}
-void sDictGetT(CuTest *tc) {
+void sDictGetT(CuTest *tc UNUSED) {
sDictt *o;
o = allocSDict();
@@ -823,7 +823,7 @@ void sDictGetT(CuTest *tc) {
}
-void sDictSetPT(CuTest *tc) {
+void sDictSetPT(CuTest *tc UNUSED) {
sDictt *o = NULL;
sBoolt *b1, *b2;
@@ -853,7 +853,7 @@ void sDictSetPT(CuTest *tc) {
}
-void sDictSetT(CuTest *tc) {
+void sDictSetT(CuTest *tc UNUSED) {
sDictt *o = NULL;
// elements
@@ -876,7 +876,7 @@ void sDictSetT(CuTest *tc) {
}
-void sDictPushT(CuTest *tc) {
+void sDictPushT(CuTest *tc UNUSED) {
sDictt *o = NULL;
// elements
@@ -921,7 +921,7 @@ void sDictPushT(CuTest *tc) {
}
-void sDictDelT(CuTest *tc) {
+void sDictDelT(CuTest *tc UNUSED) {
sDictt *o = NULL;
// elements
@@ -935,7 +935,7 @@ void sDictDelT(CuTest *tc) {
}
-void sStringGetT(CuTest *tc) {
+void sStringGetT(CuTest *tc UNUSED) {
sStringt *s = allocSStringTiny("qweqwe");
char *S = sStringGetTiny(s);
@@ -945,7 +945,7 @@ void sStringGetT(CuTest *tc) {
}
-void sStringSetT(CuTest *tc) {
+void sStringSetT(CuTest *tc UNUSED) {
sStringt *s = allocSStringTiny("qweqwe");
sStringSetTiny(&s, "sheepy");
@@ -956,7 +956,7 @@ void sStringSetT(CuTest *tc) {
}
-void sArrayPushT(CuTest *tc) {
+void sArrayPushT(CuTest *tc UNUSED) {
sArrayt *a = allocSArray();
sBoolt *b = allocSBool(false);
@@ -980,7 +980,7 @@ void sArrayPushT(CuTest *tc) {
}
-void sArrayPrependT(CuTest *tc) {
+void sArrayPrependT(CuTest *tc UNUSED) {
sArrayt *a = allocSArray();
sBoolt *b = allocSBool(false);
@@ -1004,7 +1004,7 @@ void sArrayPrependT(CuTest *tc) {
}
-void sArrayPopT(CuTest *tc) {
+void sArrayPopT(CuTest *tc UNUSED) {
char *S;
sArrayt *a = allocSArray();
@@ -1050,7 +1050,7 @@ void sArrayPopT(CuTest *tc) {
}
-void sArrayDequeueT(CuTest *tc) {
+void sArrayDequeueT(CuTest *tc UNUSED) {
char *S;
sArrayt *a = allocSArray();
@@ -1096,7 +1096,7 @@ void sArrayDequeueT(CuTest *tc) {
}
-void sArrayGetT(CuTest *tc) {
+void sArrayGetT(CuTest *tc UNUSED) {
sArrayt *a = allocSArray();
sBoolt *b = allocSBool(false);
@@ -1117,7 +1117,7 @@ void sArrayGetT(CuTest *tc) {
}
-void sArraySetPT(CuTest *tc) {
+void sArraySetPT(CuTest *tc UNUSED) {
sArrayt *a = allocSArray();
sBoolt *b = allocSBool(false);
@@ -1143,7 +1143,7 @@ void sArraySetPT(CuTest *tc) {
}
-void sArraySetT(CuTest *tc) {
+void sArraySetT(CuTest *tc UNUSED) {
sArrayt *a = allocSArray();
sBoolt *b = allocSBool(false);
@@ -1167,7 +1167,7 @@ void sArraySetT(CuTest *tc) {
}
-void sArrayReverseT(CuTest *tc) {
+void sArrayReverseT(CuTest *tc UNUSED) {
sArrayt *a = allocSArray();
sBoolt *b = allocSBool(false);
@@ -1187,7 +1187,7 @@ void sArrayReverseT(CuTest *tc) {
}
-void sArrayDelT(CuTest *tc) {
+void sArrayDelT(CuTest *tc UNUSED) {
sArrayt *a = allocSArray();
sBoolt *b = allocSBool(false);
@@ -1203,7 +1203,7 @@ void sArrayDelT(CuTest *tc) {
}
-void sArrayDelRangeT(CuTest *tc) {
+void sArrayDelRangeT(CuTest *tc UNUSED) {
sArrayt *a = allocSArray();
sBoolt *b = allocSBool(false);
@@ -1222,7 +1222,7 @@ void sArrayDelRangeT(CuTest *tc) {
-void sBytesGetT(CuTest *tc) {
+void sBytesGetT(CuTest *tc UNUSED) {
char *T = "sheepy";
sBytest *B = allocSBytes();
@@ -1234,7 +1234,7 @@ void sBytesGetT(CuTest *tc) {
}
-void sBytesPushT(CuTest *tc) {
+void sBytesPushT(CuTest *tc UNUSED) {
sBytest *B = allocSBytes();
sBytesPush(&B, 1);
@@ -1253,7 +1253,7 @@ void sBytesPushT(CuTest *tc) {
}
-void sBytesPushBufferT(CuTest *tc) {
+void sBytesPushBufferT(CuTest *tc UNUSED) {
char s[] = {1,2,3};
sBytest *B = NULL;
@@ -1283,7 +1283,7 @@ void sBytesPushBufferT(CuTest *tc) {
}
-void sSerialT(CuTest *tc) {
+void sSerialT(CuTest *tc UNUSED) {
char *S;
@@ -1319,7 +1319,7 @@ void sSerialT(CuTest *tc) {
}
-void sDictSerialElementsT(CuTest *tc) {
+void sDictSerialElementsT(CuTest *tc UNUSED) {
sBytest *r = NULL;
sDictt *o = NULL;
@@ -1388,7 +1388,7 @@ void sDictSerialElementsT(CuTest *tc) {
}
-void sArraySerialElementsT(CuTest *tc) {
+void sArraySerialElementsT(CuTest *tc UNUSED) {
sBytest *r = NULL;
sArrayt *o = NULL;
@@ -1450,7 +1450,7 @@ void sArraySerialElementsT(CuTest *tc) {
}
-void sDeserialT(CuTest *tc) {
+void sDeserialT(CuTest *tc UNUSED) {
sBytest *r = NULL;
char *S;
@@ -1546,7 +1546,7 @@ void sDeserialT(CuTest *tc) {
}
-void sDictDeserialElementsT(CuTest *tc) {
+void sDictDeserialElementsT(CuTest *tc UNUSED) {
sBytest *r = NULL;
sDictt *o = NULL;
char *S;
@@ -1601,7 +1601,7 @@ void sDictDeserialElementsT(CuTest *tc) {
}
-void sArrayDeserialElementsT(CuTest *tc) {
+void sArrayDeserialElementsT(CuTest *tc UNUSED) {
sBytest *src = NULL;
sArrayt *r = NULL;
@@ -1670,7 +1670,7 @@ void sArrayDeserialElementsT(CuTest *tc) {
-int main(int n, char**v) {
+int main(int n UNUSED, char**v UNUSED) {
// disable btrace to make the test run faster
btraceDisable();
CuString *output = CuStringNew();
diff --git a/src/libsheepyTest.c b/src/libsheepyTest.c
@@ -7024,7 +7024,6 @@ END_TEST
START_TEST(iListDelST)
char **l = NULL;
- char **l2;
// list negative index
listPushS(&l, "1");
@@ -8436,7 +8435,6 @@ END_TEST
START_TEST(iListDelT)
void **l = NULL;
- void **l2;
char *s1 = "1";
char *s2 = "22";
char *s3 = "333";
@@ -8689,7 +8687,7 @@ ringMake(chanT, int, chanMax);
typedef struct {int slot; int a; chanT *c;} AArgs;
// declaration of fibers type fiberA
-void fiberATest(int thisSlot) {
+void fiberATest(int thisSlot UNUSED) {
return;
}