test-atomic: Fix warnings for GCC4.9 and sparse
authorDaniele Di Proietto <ddiproietto@vmware.com>
Thu, 7 Aug 2014 01:35:11 +0000 (01:35 +0000)
committerJarno Rajahalme <jrajahalme@nicira.com>
Wed, 6 Aug 2014 17:58:22 +0000 (10:58 -0700)
commitfb42720ed20a4268d44df3f39e3ec5fd00261e28
tree7088f5a59bc9628257f2eb402f9debfc921bb8a1
parent6c6814d678beda510e3e20edf6c47542517aa286
test-atomic: Fix warnings for GCC4.9 and sparse

There's no reason for the local variable 'old_count' to be atomic. In fact, if
it is atomic it triggers a GCC4.9 warning (Wunused-value)
The global variables 'a' and 'paux' could be static, according to sparse.

Signed-off-by: Daniele Di Proietto <ddiproietto@vmware.com>
Acked-by: Jarno Rajahalme <jrajahalme@nicira.com>
tests/test-atomic.c