common-utils-selftests.c: Add ATTRIBUTE_PRINTF
authorSimon Marchi <simon.marchi@ericsson.com>
Sat, 28 Oct 2017 03:36:19 +0000 (23:36 -0400)
committerSimon Marchi <simon.marchi@ericsson.com>
Sat, 28 Oct 2017 03:36:45 +0000 (23:36 -0400)
commitb5540b5f2b9cd5fcbac6504359b856d3f43267b5
treee6c6adb1c9df57ea6d15ffb2b59166151774f322
parent5a9dcda14c240eccee5c1de53cf4ae936230ed0c
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.
gdb/ChangeLog
gdb/unittests/common-utils-selftests.c