2
0
mirror of https://gitlab.isc.org/isc-projects/bind9 synced 2025-08-31 14:35:26 +00:00

address or suppress cppcheck warnings

This commit is contained in:
Mark Andrews
2019-08-08 13:52:44 +10:00
parent 30b6e93a70
commit b59fe46e76
52 changed files with 328 additions and 218 deletions

View File

@@ -121,6 +121,7 @@ dns_ttl_totext(uint32_t src, bool verbose,
* here because region.base is type unsigned char *.
*/
isc_buffer_usedregion(target, &region);
/* cppcheck-suppress unreadVariable */
region.base[region.length - 1] =
toupper(region.base[region.length - 1]);
}