]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
cmake: disable -fvar-tracking-assignments for config.cc 16695/head
authorKefu Chai <kchai@redhat.com>
Mon, 31 Jul 2017 12:32:18 +0000 (20:32 +0800)
committerKefu Chai <kchai@redhat.com>
Mon, 31 Jul 2017 12:34:26 +0000 (20:34 +0800)
commit9dc53c276f78f9097ed38a2ab825faa74bcf8832
tree5aaa8918d81df740a07cd7e2bc68923f1b515cb4
parent729cf4467942b54eec9f7e036043fa9fafa08574
cmake: disable -fvar-tracking-assignments for config.cc

there are too many variables involved in config.cc, but
-fvar-tracking-assignments is enabled by default, when the compiler
finds that the number of variables exceeds the limit
"max-vartrack-size", it gives up, and tries again disabling this
option.

this change avoids the recompilation of config.cc and also
silences the warning of

src/common/config.cc:77:1: note: variable tracking size limit exceeded
with -fvar-tracking-assignments, retrying without
 md_config_t::md_config_t(bool is_daemon)
 ^

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