[Openmp-commits] [openmp] r238934 - Remove unused variable anonym from kmp_atomic.c
Jonathan Peyton
jonathan.l.peyton at intel.com
Wed Jun 3 09:23:36 PDT 2015
Author: jlpeyton
Date: Wed Jun 3 11:23:36 2015
New Revision: 238934
URL: http://llvm.org/viewvc/llvm-project?rev=238934&view=rev
Log:
Remove unused variable anonym from kmp_atomic.c
There is an anonym variable inside a macro that is declared and defined
but never used. This patch removes it.
http://lists.cs.uiuc.edu/pipermail/openmp-dev/2015-June/000666.html
Patch by Jack Howarth and Jonathan Peyton
Modified:
openmp/trunk/runtime/src/kmp_atomic.c
Modified: openmp/trunk/runtime/src/kmp_atomic.c
URL: http://llvm.org/viewvc/llvm-project/openmp/trunk/runtime/src/kmp_atomic.c?rev=238934&r1=238933&r2=238934&view=diff
==============================================================================
--- openmp/trunk/runtime/src/kmp_atomic.c (original)
+++ openmp/trunk/runtime/src/kmp_atomic.c Wed Jun 3 11:23:36 2015
@@ -724,7 +724,6 @@ RET_TYPE __kmpc_atomic_##TYPE_ID##_##OP_
// I verified the asm of the workaround.
#define OP_CMPXCHG_WORKAROUND(TYPE,BITS,OP) \
{ \
- char anonym[ ( sizeof( TYPE ) == sizeof( kmp_int##BITS ) ) ? ( 1 ) : ( 0 ) ] = { 1 }; \
struct _sss { \
TYPE cmp; \
kmp_int##BITS *vvv; \
More information about the Openmp-commits
mailing list