New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

rgw: warning, output may be truncated before the last format character #14194

Merged
merged 1 commit into from Mar 30, 2017

Conversation

Projects
None yet
4 participants
@joscollin
Member

joscollin commented Mar 28, 2017

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

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>
@badone

badone approved these changes Mar 29, 2017

LGTM

@yehudasa yehudasa merged commit 68d26da into ceph:master Mar 30, 2017

3 checks passed

Signed-off-by all commits in this PR are signed
Details
Unmodifed Submodules submodules for project are unmodified
Details
default Build finished.
Details

@joscollin joscollin deleted the joscollin:wip-rgw_rados-warning branch Apr 13, 2017

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment