[warnings] annotate cert-err34-c

This commit is contained in:
akallabeth
2024-09-30 22:45:08 +02:00
parent f6eb6ad4d7
commit fe8555a4fd
4 changed files with 7 additions and 1 deletions

View File

@@ -65,6 +65,8 @@ static bool is_mac_os_sonoma_or_later(void)
int major = 0;
int minor = 0;
int patch = 0;
// NOLINTNEXTLINE(cert-err34-c)
const int rc = sscanf(str, "%d.%d.%d", &major, &minor, &patch);
if (rc != 3)
{