Message ID | 20211119074602.857595-11-lkml@jv-coder.de |
---|---|
State | Accepted |
Headers | show |
Series | Fix or suppress compiler warnings in posix/conformance/interfaces | expand |
Hi! Applied, thanks.
diff --git a/testcases/open_posix_testsuite/conformance/interfaces/pthread_exit/1-2.c b/testcases/open_posix_testsuite/conformance/interfaces/pthread_exit/1-2.c index 82be6f982..c9931e295 100644 --- a/testcases/open_posix_testsuite/conformance/interfaces/pthread_exit/1-2.c +++ b/testcases/open_posix_testsuite/conformance/interfaces/pthread_exit/1-2.c @@ -105,7 +105,7 @@ int main(void) int ret = 0; void *rval; pthread_t child; - int i; + unsigned int i; output_init(); diff --git a/testcases/open_posix_testsuite/conformance/interfaces/pthread_exit/2-2.c b/testcases/open_posix_testsuite/conformance/interfaces/pthread_exit/2-2.c index 16c658f73..7098e2e5d 100644 --- a/testcases/open_posix_testsuite/conformance/interfaces/pthread_exit/2-2.c +++ b/testcases/open_posix_testsuite/conformance/interfaces/pthread_exit/2-2.c @@ -123,7 +123,8 @@ int main(void) int ret = 0; void *rval; pthread_t child; - int i, j; + unsigned int i; + int j; output_init(); diff --git a/testcases/open_posix_testsuite/conformance/interfaces/pthread_exit/3-2.c b/testcases/open_posix_testsuite/conformance/interfaces/pthread_exit/3-2.c index 4437ffc77..0a8583fad 100644 --- a/testcases/open_posix_testsuite/conformance/interfaces/pthread_exit/3-2.c +++ b/testcases/open_posix_testsuite/conformance/interfaces/pthread_exit/3-2.c @@ -149,7 +149,8 @@ int main(void) int ret = 0; void *rval; pthread_t child; - int i, j; + unsigned int i; + int j; output_init(); diff --git a/testcases/open_posix_testsuite/conformance/interfaces/pthread_exit/4-1.c b/testcases/open_posix_testsuite/conformance/interfaces/pthread_exit/4-1.c index 810df0c34..33e5562ca 100644 --- a/testcases/open_posix_testsuite/conformance/interfaces/pthread_exit/4-1.c +++ b/testcases/open_posix_testsuite/conformance/interfaces/pthread_exit/4-1.c @@ -122,7 +122,7 @@ int main(void) int ret = 0; void *rval; pthread_t child; - int i; + unsigned int i; output_init(); diff --git a/testcases/open_posix_testsuite/conformance/interfaces/pthread_exit/5-1.c b/testcases/open_posix_testsuite/conformance/interfaces/pthread_exit/5-1.c index 69d5c6a97..e35dbef99 100644 --- a/testcases/open_posix_testsuite/conformance/interfaces/pthread_exit/5-1.c +++ b/testcases/open_posix_testsuite/conformance/interfaces/pthread_exit/5-1.c @@ -141,7 +141,8 @@ int main(void) int ctl = 0; void *rval; pthread_t child; - int i, j; + unsigned int i; + int j; output_init(); diff --git a/testcases/open_posix_testsuite/conformance/interfaces/pthread_mutex_trylock/1-2.c b/testcases/open_posix_testsuite/conformance/interfaces/pthread_mutex_trylock/1-2.c index 7901115f0..a3d8c4864 100644 --- a/testcases/open_posix_testsuite/conformance/interfaces/pthread_mutex_trylock/1-2.c +++ b/testcases/open_posix_testsuite/conformance/interfaces/pthread_mutex_trylock/1-2.c @@ -149,7 +149,7 @@ static void *tf(void *arg) int main(void) { int ret; - int sc; + unsigned int sc; pthread_mutexattr_t ma; testdata_t *td; diff --git a/testcases/open_posix_testsuite/conformance/interfaces/pthread_mutex_trylock/2-1.c b/testcases/open_posix_testsuite/conformance/interfaces/pthread_mutex_trylock/2-1.c index 203d03cb5..038cf94f0 100644 --- a/testcases/open_posix_testsuite/conformance/interfaces/pthread_mutex_trylock/2-1.c +++ b/testcases/open_posix_testsuite/conformance/interfaces/pthread_mutex_trylock/2-1.c @@ -126,7 +126,7 @@ static void *tf(void *arg) int main(void) { int ret; - int sc; + unsigned int sc; pthread_mutexattr_t ma; testdata_t *td; diff --git a/testcases/open_posix_testsuite/conformance/interfaces/pthread_sigmask/18-1.c b/testcases/open_posix_testsuite/conformance/interfaces/pthread_sigmask/18-1.c index 5801e0e60..f303e9854 100644 --- a/testcases/open_posix_testsuite/conformance/interfaces/pthread_sigmask/18-1.c +++ b/testcases/open_posix_testsuite/conformance/interfaces/pthread_sigmask/18-1.c @@ -158,7 +158,7 @@ static void *test(void *arg PTS_ATTRIBUTE_UNUSED) { int ret = 0; sigset_t set; - int i, j = 0; + unsigned int i, j = 0; int signals[] = { SIGBUS, SIGKILL, SIGABRT, SIGCHLD, SIGHUP }; #define NSIG (sizeof(signals)/sizeof(int)) int operation[] = { SIG_SETMASK, SIG_BLOCK, SIG_UNBLOCK }; diff --git a/testcases/open_posix_testsuite/conformance/interfaces/pthread_sigmask/7-1.c b/testcases/open_posix_testsuite/conformance/interfaces/pthread_sigmask/7-1.c index aa9c6b96e..79cdefd99 100644 --- a/testcases/open_posix_testsuite/conformance/interfaces/pthread_sigmask/7-1.c +++ b/testcases/open_posix_testsuite/conformance/interfaces/pthread_sigmask/7-1.c @@ -24,7 +24,8 @@ returned by the pthread_sigmask functions. static void *a_thread_func() { sigset_t oactl, tempset; - int i, j, test_failed = 0; + unsigned int i, j; + int test_failed = 0; int siglist[] = { SIGABRT, SIGALRM, SIGBUS, SIGCHLD, SIGCONT, SIGFPE, SIGHUP, SIGILL, SIGINT,