]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
cmake: disable -fvar-tracking-assignments for osdcap.cc 12194/head
authorKefu Chai <kchai@redhat.com>
Fri, 25 Nov 2016 01:43:56 +0000 (09:43 +0800)
committerKefu Chai <kchai@redhat.com>
Mon, 28 Nov 2016 04:33:17 +0000 (12:33 +0800)
this silences the warning of

/home/jenkins-build/build/workspace/ceph-pull-requests/src/test/osd/osdcap.cc:
In member function ‘virtual void
OSDCap_AllowClassMulti_Test::TestBody()’:
/home/jenkins-build/build/workspace/ceph-pull-requests/src/test/osd/osdcap.cc:766:6:
note: variable tracking size limit exceeded with
-fvar-tracking-assignments, retrying without
 TEST(OSDCap, AllowClassMulti) {
      ^

Signed-off-by: Kefu Chai <kchai@redhat.com>
src/test/osd/CMakeLists.txt

index f3079db5f77a54fc340ef6c4509ac3652a39f384..15cfc38ebd17d2f06267777646531c013d409e2f 100644 (file)
@@ -76,6 +76,10 @@ target_link_libraries(unittest_hitset osd global ${BLKID_LIBRARIES})
 add_executable(unittest_osd_osdcap
   osdcap.cc
 )
+if(HAS_VTA)
+  set_source_files_properties(osdcap.cc PROPERTIES
+    COMPILE_FLAGS -fno-var-tracking-assignments)
+endif()
 add_ceph_unittest(unittest_osd_osdcap ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/unittest_osd_osdcap)
 target_link_libraries(unittest_osd_osdcap osd global ${BLKID_LIBRARIES})