Skip to content

Commit 0b5d37a

Browse files
committed
Fix unused variable warnings in float2 test
Enable the part of the test which is uses the two variables, fixing thus the warnings. Also, there is currently no reason for running the test with -Wno-error, so don't do it.
1 parent 868d75c commit 0b5d37a

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

uspace/app/tester/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ USPACE_PREFIX = ../..
3131

3232
# TODO: softfloat testing should be done via unit tests.
3333
LIBS = block softfloat drv math
34-
EXTRA_CFLAGS = -I$(LIBSOFTFLOAT_PREFIX) -Wno-error
34+
EXTRA_CFLAGS = -I$(LIBSOFTFLOAT_PREFIX)
3535

3636
BINARY = tester
3737

uspace/app/tester/float/float2.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,7 @@ static bool cmp_double(double a, double b)
208208
const char *test_float2(void)
209209
{
210210
bool fail = false;
211-
#if 0
211+
212212
for (unsigned int i = 0; i < OPERANDS; i++) {
213213
double res = acos(arguments_acos[i]);
214214

@@ -248,7 +248,7 @@ const char *test_float2(void)
248248
fail = true;
249249
}
250250
}
251-
#endif
251+
252252
for (unsigned int i = 0; i < OPERANDS; i++) {
253253
double res = atan(arguments_atan[i]);
254254

0 commit comments

Comments
 (0)