snprintf() doesn't use format size specifiers
Christian Helmuth
christian.helmuth at ...1...
Thu Apr 23 12:15:32 CEST 2015
Hello,
when compiling Norman's test with the -Wextra command-line switch, GCC
prints the following diagnostic hinting that the resulting binary may
not behave as expected.
c.cc: In constructor ‘Object_with_ref::Object_with_ref(const Wrapped_value&)’:
c.cc:42:14: warning: a temporary bound to ‘Object_with_ref::_value’ only persists until the constructor exits [-Wextra]
Regards
--
Christian Helmuth
Genode Labs
http://www.genode-labs.com/ · http://genode.org/
https://twitter.com/GenodeLabs · /ˈdʒiː.nəʊd/
Genode Labs GmbH · Amtsgericht Dresden · HRB 28424 · Sitz Dresden
Geschäftsführer: Dr.-Ing. Norman Feske, Christian Helmuth
More information about the users
mailing list