snprintf() doesn't use format size specifiers

Christian Helmuth christian.helmuth at ...1...
Thu Apr 23 12:15:32 CEST 2015


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. In constructor ‘Object_with_ref::Object_with_ref(const Wrapped_value&)’: warning: a temporary bound to ‘Object_with_ref::_value’ only persists until the constructor exits [-Wextra]

Christian Helmuth
Genode Labs · · /ˈ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