Remove unused variables to fix building world
This commit is contained in:
parent
ff63dbca6e
commit
0e798dd249
@ -105,10 +105,9 @@ ATF_TC_WITHOUT_HEAD(test_autoalloc);
|
|||||||
ATF_TC_BODY(test_autoalloc, tc)
|
ATF_TC_BODY(test_autoalloc, tc)
|
||||||
{
|
{
|
||||||
/* Let fmemopen allocate the buffer. */
|
/* Let fmemopen allocate the buffer. */
|
||||||
char str[] = "A quick test";
|
|
||||||
FILE *fp;
|
FILE *fp;
|
||||||
long pos;
|
long pos;
|
||||||
size_t nofw, nofr, i;
|
size_t nofw, i;
|
||||||
int rc;
|
int rc;
|
||||||
|
|
||||||
/* Open a FILE * using fmemopen. */
|
/* Open a FILE * using fmemopen. */
|
||||||
|
@ -113,7 +113,6 @@ ATF_TC_BODY(getline_basic, tc)
|
|||||||
ATF_TC_WITHOUT_HEAD(stream_error);
|
ATF_TC_WITHOUT_HEAD(stream_error);
|
||||||
ATF_TC_BODY(stream_error, tc)
|
ATF_TC_BODY(stream_error, tc)
|
||||||
{
|
{
|
||||||
FILE *fp;
|
|
||||||
char *line;
|
char *line;
|
||||||
size_t linecap;
|
size_t linecap;
|
||||||
|
|
||||||
|
@ -48,7 +48,7 @@ static char tmpfil[PATH_MAX];
|
|||||||
ATF_TC_WITHOUT_HEAD(perror_test);
|
ATF_TC_WITHOUT_HEAD(perror_test);
|
||||||
ATF_TC_BODY(perror_test, tc)
|
ATF_TC_BODY(perror_test, tc)
|
||||||
{
|
{
|
||||||
char buf[512], lbuf[512];
|
char lbuf[512];
|
||||||
int i;
|
int i;
|
||||||
char *s;
|
char *s;
|
||||||
|
|
||||||
|
@ -58,7 +58,6 @@ ATF_TC_BODY(normalized_numbers, tc)
|
|||||||
long double ld = 0.0;
|
long double ld = 0.0;
|
||||||
double d = 0.0;
|
double d = 0.0;
|
||||||
float f = 0.0;
|
float f = 0.0;
|
||||||
char *endp;
|
|
||||||
|
|
||||||
buf[0] = '\0';
|
buf[0] = '\0';
|
||||||
ATF_REQUIRE(setlocale(LC_NUMERIC, ""));
|
ATF_REQUIRE(setlocale(LC_NUMERIC, ""));
|
||||||
@ -157,7 +156,6 @@ ATF_TC_BODY(infinities_and_nans, tc)
|
|||||||
long double ld = 0.0;
|
long double ld = 0.0;
|
||||||
double d = 0.0;
|
double d = 0.0;
|
||||||
float f = 0.0;
|
float f = 0.0;
|
||||||
char *endp;
|
|
||||||
|
|
||||||
ATF_REQUIRE(setlocale(LC_NUMERIC, "C"));
|
ATF_REQUIRE(setlocale(LC_NUMERIC, "C"));
|
||||||
|
|
||||||
@ -205,11 +203,8 @@ ATF_TC_BODY(infinities_and_nans, tc)
|
|||||||
ATF_TC_WITHOUT_HEAD(rounding_tests);
|
ATF_TC_WITHOUT_HEAD(rounding_tests);
|
||||||
ATF_TC_BODY(rounding_tests, tc)
|
ATF_TC_BODY(rounding_tests, tc)
|
||||||
{
|
{
|
||||||
char buf[128];
|
|
||||||
long double ld = 0.0;
|
long double ld = 0.0;
|
||||||
double d = 0.0;
|
double d = 0.0;
|
||||||
float f = 0.0;
|
|
||||||
char *endp;
|
|
||||||
|
|
||||||
ATF_REQUIRE(setlocale(LC_NUMERIC, "C"));
|
ATF_REQUIRE(setlocale(LC_NUMERIC, "C"));
|
||||||
|
|
||||||
@ -287,10 +282,6 @@ ATF_TC_BODY(rounding_tests, tc)
|
|||||||
ATF_TC_WITHOUT_HEAD(strtod);
|
ATF_TC_WITHOUT_HEAD(strtod);
|
||||||
ATF_TC_BODY(strtod, tc)
|
ATF_TC_BODY(strtod, tc)
|
||||||
{
|
{
|
||||||
char buf[128];
|
|
||||||
long double ld = 0.0;
|
|
||||||
double d = 0.0;
|
|
||||||
float f = 0.0;
|
|
||||||
char *endp;
|
char *endp;
|
||||||
|
|
||||||
ATF_REQUIRE(setlocale(LC_NUMERIC, "C"));
|
ATF_REQUIRE(setlocale(LC_NUMERIC, "C"));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user