Skip to content

Commit 00c66df

Browse files
committed
errors: update static analysis tools for giterr
Update GITERR and giterr usages in the static code analysis tools to use the new names.
1 parent fcc7dcb commit 00c66df

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

libgit2_clar.supp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,10 @@
55
}
66

77
{
8-
ignore-giterr-set-leak
8+
ignore-giterror-set-leak
99
Memcheck:Leak
1010
...
11-
fun:giterr_set
11+
fun:giterror_set
1212
}
1313

1414
{

script/user_nodefs.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55
* a Linking Exception. For full terms see the included COPYING file.
66
*/
77

8-
#nodef GITERR_CHECK_ALLOC(ptr) if (ptr == NULL) { __coverity_panic__(); }
9-
#nodef GITERR_CHECK_ALLOC_BUF(buf) if (buf == NULL || git_buf_oom(buf)) { __coverity_panic__(); }
8+
#nodef GIT_ERROR_CHECK_ALLOC(ptr) if (ptr == NULL) { __coverity_panic__(); }
9+
#nodef GIT_ERROR_CHECK_ALLOC_BUF(buf) if (buf == NULL || git_buf_oom(buf)) { __coverity_panic__(); }
1010

1111
#nodef GITERR_CHECK_ALLOC_ADD(out, one, two) \
1212
if (GIT_ADD_SIZET_OVERFLOW(out, one, two)) { __coverity_panic__(); }
@@ -23,7 +23,7 @@
2323
#nodef GITERR_CHECK_ALLOC_MULTIPLY(out, nelem, elsize) \
2424
if (GIT_MULTIPLY_SIZET_OVERFLOW(out, nelem, elsize)) { __coverity_panic__(); }
2525

26-
#nodef GITERR_CHECK_VERSION(S,V,N) if (giterr__check_version(S,V,N) < 0) { __coverity_panic__(); }
26+
#nodef GIT_ERROR_CHECK_VERSION(S,V,N) if (git_error__check_version(S,V,N) < 0) { __coverity_panic__(); }
2727

2828
#nodef LOOKS_LIKE_DRIVE_PREFIX(S) (strlen(S) >= 2 && git__isalpha((S)[0]) && (S)[1] == ':')
2929

0 commit comments

Comments
 (0)