]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
cmake: disable -fvar-tracking-assignments for ceph_dencoder.cc 10275/head
authorKefu Chai <kchai@redhat.com>
Wed, 13 Jul 2016 04:58:31 +0000 (12:58 +0800)
committerKefu Chai <kchai@redhat.com>
Wed, 13 Jul 2016 04:58:33 +0000 (12:58 +0800)
commitb6680516ea1a24774ccaa8c6a01d308dbf429504
tree3c7b4c32b9d1057e3b630252b732601e5077a7b6
parentec8d3bed937ecc8413e730166fd0fd367a0139ac
cmake: disable -fvar-tracking-assignments for ceph_dencoder.cc

there are too many variables involved in main() of ceph_dencoder.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 ceph_dencoder.cc and also silences
the warning of
```
/home/jenkins-build/build/workspace/ceph-pull-requests/src/test/encoding/ceph_dencoder.cc:
In function ‘int main(int, const char**)’:
/home/jenkins-build/build/workspace/ceph-pull-requests/src/test/encoding/ceph_dencoder.cc:289:5:
note: variable tracking size limit exceeded with
-fvar-tracking-assignments, retrying without
 int main(int argc, const char **argv)
     ^
```

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