This is the mail archive of the
gdb-testers@sourceware.org
mailing list for the GDB project.
[binutils-gdb] common-utils-selftests.c: Add ATTRIBUTE_PRINTF
- From: sergiodj+buildbot at sergiodj dot net
- To: gdb-testers at sourceware dot org
- Date: Sat, 28 Oct 2017 04:39:02 -0400
- Subject: [binutils-gdb] common-utils-selftests.c: Add ATTRIBUTE_PRINTF
- Authentication-results: sourceware.org; auth=none
*** TEST RESULTS FOR COMMIT b5540b5f2b9cd5fcbac6504359b856d3f43267b5 ***
Author: Simon Marchi <simon.marchi@ericsson.com>
Branch: master
Commit: b5540b5f2b9cd5fcbac6504359b856d3f43267b5
common-utils-selftests.c: Add ATTRIBUTE_PRINTF
Fix this, when building with clang:
/home/emaisin/src/binutils-gdb/gdb/unittests/common-utils-selftests.c:50:40: error: format string is not a string literal [-Werror,-Wformat-nonliteral]
std::string result = string_vprintf (fmt, vp);
^~~
gdb/ChangeLog:
* unittests/common-utils-selftests.c (format): Add
ATTRIBUTE_PRINTF.