]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
rgw: warning, output may be truncated before the last format character 14194/head
authorJos Collin <jcollin@redhat.com>
Tue, 28 Mar 2017 14:27:29 +0000 (19:57 +0530)
committerJos Collin <jcollin@redhat.com>
Tue, 28 Mar 2017 14:27:39 +0000 (19:57 +0530)
commit7553a8ea2c63f94c27252a5819f0ea4d255c19d2
tree5f2c953c904f8132a32ef7e3a351e20be1280119
parentaf3b8ed6174fe652fdafaa06865e30eae952e841
rgw: warning, output may be truncated before the last format character

The following warning appears during make:

```
rgw_rados.cc: In function ‘void usage_log_hash(CephContext*, const string&, std::__cxx11::string&, uint32_t)’:
rgw_rados.cc:4579:13: warning: ‘__builtin___snprintf_chk’ output may be truncated before the last format character [-Wformat-truncation=]
static void usage_log_hash(CephContext *cct, const string& name, string& hash, uint32_t index)
                 ^~~~~~~~~~~~~~
/usr/include/bits/stdio2.h:65:44: note: ‘__builtin___snprintf_chk’ output between 8 and 17 bytes into a destination of size 16
        __bos (__s), __fmt, __va_arg_pack ());
```

Signed-off-by: Jos Collin <jcollin@redhat.com>
src/rgw/rgw_rados.cc