]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
Adds C++ warning flag for C Variable-Length Arrays. 15342/head
authorJesse Williamson <jwilliamson@suse.de>
Sun, 28 May 2017 12:24:26 +0000 (05:24 -0700)
committerJesse Williamson <jwilliamson@suse.de>
Sun, 28 May 2017 12:24:26 +0000 (05:24 -0700)
commitde4d1113058445f04652e24a734dae35e12552ca
tree444a07f7b8f2f64ee87b1d0dd5203f735fbf6477
parentef9d93b8eac0faa9b9f10dd6536a9663229d6d2a
Adds C++ warning flag for C Variable-Length Arrays.

C VLAs are not supported in C++. However, the GNU compiler allows
them as an extension, which it does not warn about when not in
pedantic mode. Unfortunately, it's easy to accidentally write
a VLA, even unintentionally-- adding this warning will help us
catch that.

Signed-off-by: Jesse Williamson <jwilliamson@suse.de>
src/CMakeLists.txt