AR=ar
RANLIB=ranlib
-CFLAGS += -g -D_POSIX_C_SOURCE=200809L -std=c99 -pipe -Wall -Wno-unused-function
+CFLAGS += -g -D_POSIX_C_SOURCE=200809L -std=c99 -pipe -Wall -Wno-unused-function -Wno-missing-braces
LDFLAGS += -g -lpthread -lrt -lm
-include $(TROOT)/config.mak
void test_lrint()
{
- int f, i, j;
+ int f, i;
long n;
for (i = 0; i < sizeof t/sizeof *t; i++) {
int p[2];
pid_t pid;
int status;
- posix_spawnattr_t attr;
posix_spawn_file_actions_t fa;
TEST_E(!pipe(p));
void test_snprintf(void)
{
int i, j, k;
- char b[2000], *s;
+ char b[2000];
TEST(i, snprintf(0, 0, "%d", 123456), 6, "length returned %d != %d");
TEST(i, snprintf(0, 0, "%.4s", "hello"), 4, "length returned %d != %d");
void test_swprintf(void) {
int i, j;
- wchar_t b[500], *s;
+ wchar_t b[500];
setlocale(LC_CTYPE, "en_US.UTF-8") ||
setlocale(LC_CTYPE, "en_GB.UTF-8") ||
int foo[4], bar[2];
pthread_barrier_t barrier2;
pthread_mutexattr_t mtx_a;
- pthread_mutex_t *sh_mtx;
sem_t sem1;
- int fd;
pthread_mutex_t mtx;
pthread_cond_t cond;