A few spots can validly call vsprintf; this adds ARI markers to
suppress warnings at these places.
gdb/ChangeLog
2019-12-13 Tom Tromey <tromey@adacore.com>
* gdbsupport/common-utils.c (string_printf, string_vprintf)
(string_vappendf): Add ARI comment.
Change-Id: Ia8665aa5d7b7331a3985b18626b19764a264447b
+2019-12-13 Tom Tromey <tromey@adacore.com>
+
+ * gdbsupport/common-utils.c (string_printf, string_vprintf)
+ (string_vappendf): Add ARI comment.
+
2019-12-13 Tom Tromey <tromey@adacore.com>
* contrib/ari/gdb_ari.sh: Remove "fix" call for
2019-12-13 Tom Tromey <tromey@adacore.com>
* contrib/ari/gdb_ari.sh: Remove "fix" call for
/* C++11 and later guarantee std::string uses contiguous memory and
always includes the terminating '\0'. */
va_start (vp, fmt);
/* C++11 and later guarantee std::string uses contiguous memory and
always includes the terminating '\0'. */
va_start (vp, fmt);
- vsprintf (&str[0], fmt, vp);
+ vsprintf (&str[0], fmt, vp); /* ARI: vsprintf */
/* C++11 and later guarantee std::string uses contiguous memory and
always includes the terminating '\0'. */
/* C++11 and later guarantee std::string uses contiguous memory and
always includes the terminating '\0'. */
- vsprintf (&str[0], fmt, args);
+ vsprintf (&str[0], fmt, args); /* ARI: vsprintf */
/* C++11 and later guarantee std::string uses contiguous memory and
always includes the terminating '\0'. */
/* C++11 and later guarantee std::string uses contiguous memory and
always includes the terminating '\0'. */
- vsprintf (&str[curr_size], fmt, args);
+ vsprintf (&str[curr_size], fmt, args); /* ARI: vsprintf */