Change-Id: I4c6fb22ef8b5d596527eb8fe0991c3c573be606c
GMX_TEST_CFLAG(CXXFLAGS_WARN "/wd4273" GMXC_CXXFLAGS)
endif()
+ if (CMAKE_C_COMPILER_ID MATCHES "Clang")
+ if(NOT GMX_OPENMP)
+ GMX_TEST_CFLAG(CFLAGS_PRAGMA "-Wno-unknown-pragmas" GMXC_CFLAGS)
+ endif()
+ GMX_TEST_CFLAG(CFLAGS_WARN "-Wall -Wno-unused" GMXC_CFLAGS)
+ endif()
+
+ if (CMAKE_C_COMPILER_ID MATCHES "Clang")
+ if(NOT GMX_OPENMP)
+ GMX_TEST_CFLAG(CXXFLAGS_PRAGMA "-Wno-unknown-pragmas" GMXC_CXXFLAGS)
+ endif()
+ GMX_TEST_CXXFLAG(CXXFLAGS_WARN "-Wall -Wno-unused" GMXC_CXXFLAGS)
+ endif()
# now actually set the flags:
# C
* cluster cj and if so, put them in ci
*/
for(k=0; (k<nindex); k++) {
- if ((clust_index[k] == cj)) {
+ if (clust_index[k] == cj) {
if (clust_size[cj] <= 0)
gmx_fatal(FARGS,"negative cluster size %d for element %d",
clust_size[cj],cj);