]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
rgw/store: Do not init var-length arrays
authorWillem Jan Withagen <wjw@digiware.nl>
Wed, 11 Aug 2021 08:47:45 +0000 (10:47 +0200)
committerWillem Jan Withagen <wjw@digiware.nl>
Wed, 11 Aug 2021 10:09:33 +0000 (12:09 +0200)
commit5faf7c6c510caf0afae2196d1a8608f647cb584f
tree73a41b34d488147ff0e1efe2809ffb262f675a0a
parent5bb9f33c9158b61a0561db2be07272a83e43af6f
rgw/store: Do not init var-length arrays

Clang does nog like to init dynamic sized array:
```
src/rgw/store/dbstore/sqlite/sqliteDB.cc:334:13: error: variable-sized object may not be initialized

  char data[datalen+1] = {};

            ^~~~~~~~~
1 error generated.

```

Signed-off-by: Willem Jan Withagen <wjw@digiware.nl>
src/rgw/store/dbstore/sqlite/sqliteDB.cc