projects
/
libcds.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
f4031a3
)
Try to disable CLang "unused private field" warning
author
khizmax
<libcds.dev@gmail.com>
Thu, 11 May 2017 18:31:20 +0000
(21:31 +0300)
committer
khizmax
<libcds.dev@gmail.com>
Thu, 11 May 2017 18:31:20 +0000
(21:31 +0300)
cds/algo/atomic.h
patch
|
blob
|
history
diff --git
a/cds/algo/atomic.h
b/cds/algo/atomic.h
index dd6de4009f1b21ead515aacbc4a587e5cf58f224..c138bc9b2c3c7c2d1859d14d04da56b285f822ba 100644
(file)
--- a/
cds/algo/atomic.h
+++ b/
cds/algo/atomic.h
@@
-305,6
+305,11
@@
namespace cds {
}
};
}
};
+#if CDS_COMPILER == CDS_COMPILER_CLANG
+ // CLang unhappy: pad1_ and pad2_ - unused private field warning
+# pragma GCC diagnostic push
+# pragma GCC diagnistic ignored "-Wunused-private-field"
+#endif
/// Atomic cache-friendly item counter
/**
Atomic item counter with cache-line padding to avoid false sharing.
/// Atomic cache-friendly item counter
/**
Atomic item counter with cache-line padding to avoid false sharing.
@@
-418,7
+423,9
@@
namespace cds {
m_Counter.store( 0, order );
}
};
m_Counter.store( 0, order );
}
};
-
+#if CDS_COMPILER == CDS_COMPILER_CLANG
+# pragma GCC diagnostic pop
+#endif
/// Empty item counter
/**
/// Empty item counter
/**