diff mbox

test/api_test/odp_atomic_test.c: clear clang warning

Message ID 1408994513-2097-1-git-send-email-anders.roxell@linaro.org
State Accepted
Commit 0faf42a93d1c87f4fda3a046771e149fea6a65d1
Headers show

Commit Message

Anders Roxell Aug. 25, 2014, 7:21 p.m. UTC
Signed-off-by: Anders Roxell <anders.roxell@linaro.org>
---
 test/api_test/odp_atomic_test.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Anders Roxell Aug. 28, 2014, 6:54 a.m. UTC | #1
On 2014-08-25 21:21, Anders Roxell wrote:
> Signed-off-by: Anders Roxell <anders.roxell@linaro.org>
> ---
>  test/api_test/odp_atomic_test.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/test/api_test/odp_atomic_test.c b/test/api_test/odp_atomic_test.c
> index 92c62dd..9019d4f 100644
> --- a/test/api_test/odp_atomic_test.c
> +++ b/test/api_test/odp_atomic_test.c
> @@ -291,7 +291,7 @@ static void *run_thread(void *arg)
>  int main(int argc, char *argv[])
>  {
>  	pthrd_arg thrdarg;
> -	int test_type, pthrdnum = 0, i = 0, cnt = argc - 1;
> +	int test_type = 0, pthrdnum = 0, i = 0, cnt = argc - 1;
>  	char c;
>  	int result;
>  
> -- 
> 1.9.1
> 

Ping.
Venkatesh Vivekanandan Aug. 28, 2014, 8:49 a.m. UTC | #2
On 26 August 2014 00:51, Anders Roxell <anders.roxell@linaro.org> wrote:

> Signed-off-by: Anders Roxell <anders.roxell@linaro.org>
> ---
>  test/api_test/odp_atomic_test.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/test/api_test/odp_atomic_test.c
> b/test/api_test/odp_atomic_test.c
> index 92c62dd..9019d4f 100644
> --- a/test/api_test/odp_atomic_test.c
> +++ b/test/api_test/odp_atomic_test.c
> @@ -291,7 +291,7 @@ static void *run_thread(void *arg)
>  int main(int argc, char *argv[])
>  {
>         pthrd_arg thrdarg;
> -       int test_type, pthrdnum = 0, i = 0, cnt = argc - 1;
> +       int test_type = 0, pthrdnum = 0, i = 0, cnt = argc - 1;
>         char c;
>         int result;
>
Reviewed-by: Venkatesh Vivekanandan <venkatesh.vivekanandan@linaro.org>

>
> --
> 1.9.1
>
>
> _______________________________________________
> lng-odp mailing list
> lng-odp@lists.linaro.org
> http://lists.linaro.org/mailman/listinfo/lng-odp
>
Maxim Uvarov Aug. 28, 2014, 12:35 p.m. UTC | #3
Merged, thanks,
Maxim.

On 08/25/2014 11:21 PM, Anders Roxell wrote:
> Signed-off-by: Anders Roxell <anders.roxell@linaro.org>
> ---
>   test/api_test/odp_atomic_test.c | 2 +-
>   1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/test/api_test/odp_atomic_test.c b/test/api_test/odp_atomic_test.c
> index 92c62dd..9019d4f 100644
> --- a/test/api_test/odp_atomic_test.c
> +++ b/test/api_test/odp_atomic_test.c
> @@ -291,7 +291,7 @@ static void *run_thread(void *arg)
>   int main(int argc, char *argv[])
>   {
>   	pthrd_arg thrdarg;
> -	int test_type, pthrdnum = 0, i = 0, cnt = argc - 1;
> +	int test_type = 0, pthrdnum = 0, i = 0, cnt = argc - 1;
>   	char c;
>   	int result;
>
diff mbox

Patch

diff --git a/test/api_test/odp_atomic_test.c b/test/api_test/odp_atomic_test.c
index 92c62dd..9019d4f 100644
--- a/test/api_test/odp_atomic_test.c
+++ b/test/api_test/odp_atomic_test.c
@@ -291,7 +291,7 @@  static void *run_thread(void *arg)
 int main(int argc, char *argv[])
 {
 	pthrd_arg thrdarg;
-	int test_type, pthrdnum = 0, i = 0, cnt = argc - 1;
+	int test_type = 0, pthrdnum = 0, i = 0, cnt = argc - 1;
 	char c;
 	int result;