aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorDavid Oberhollenzer <david.oberhollenzer@sigma-star.at>2017-06-22 13:41:55 +0200
committerDavid Oberhollenzer <david.oberhollenzer@sigma-star.at>2017-06-28 11:43:03 +0200
commita7c8cb36d1fb972082ef4f0039300d051ade2de9 (patch)
tree41f3e6eaab6dc060d00bc376bc59f19f5d3fe90a /tests
parente511691315f6704961a0c8e3a9725f1a589a5c11 (diff)
Silence warnings about unused arguments
Signed-off-by: David Oberhollenzer <david.oberhollenzer@sigma-star.at>
Diffstat (limited to 'tests')
-rw-r--r--tests/fs-tests/utils/fstest_monitor.c2
-rw-r--r--tests/jittertest/JitterTest.c6
2 files changed, 8 insertions, 0 deletions
diff --git a/tests/fs-tests/utils/fstest_monitor.c b/tests/fs-tests/utils/fstest_monitor.c
index 58946cc..afb951b 100644
--- a/tests/fs-tests/utils/fstest_monitor.c
+++ b/tests/fs-tests/utils/fstest_monitor.c
@@ -177,6 +177,7 @@ static int parse_command_line(char *cmdline, int *pargc, char ***pargv)
static void signal_handler(int signum)
{
+ (void)signum;
kill_children();
}
@@ -185,6 +186,7 @@ int alarm_gone_off = 0;
static void alarm_handler(int signum)
{
+ (void)signum;
if (!result)
alarm_gone_off = 1;
kill_children();
diff --git a/tests/jittertest/JitterTest.c b/tests/jittertest/JitterTest.c
index 0364a00..4627fb0 100644
--- a/tests/jittertest/JitterTest.c
+++ b/tests/jittertest/JitterTest.c
@@ -426,6 +426,8 @@ void SignalHandler(
char tmpBuf[200];
/* Note sigNum not used. */
+ (void)sigNum;
+
printf("Ctrl+C detected. Worst Jitter time was:%fms.\nJitterTest exiting.\n",
(float)LastMaxDiff/1000.0);
@@ -458,6 +460,8 @@ static void doGrabKProfile(int jitterusec, char *fileName)
int readBytes;
char readBuf[4096];
+ (void)jitterusec;
+
if((fdSnapshot = open(fileName, O_WRONLY | O_CREAT, S_IRWXU)) <= 0)
{
fprintf(stderr, "Could not open file %s.\n", fileName);
@@ -553,6 +557,8 @@ void AlarmHandler(
if invoked < 1sec apart.
*/
+ (void)sigNum;
+
if (gettimeofday(&CurrTimeVal, NULL) == (int) 0) {
/*----------------------------------------------------------------