checker: warn if C.m* or C.s* functions are called outside unsafe blocks (#5869)

This commit is contained in:
Nick Treleaven 2020-07-20 18:06:41 +01:00 committed by GitHub
parent 1a5236e53d
commit a74cbf55c7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
23 changed files with 175 additions and 88 deletions

View file

@ -125,7 +125,8 @@ fn C.mktime() int
fn C.gettimeofday() int
fn C.sleep() int
[trusted_fn]
fn C.sleep(int) int
fn C.usleep() int
@ -152,9 +153,11 @@ fn C.tolower() int
fn C.toupper() int
[trusted_fn]
fn C.getchar() int
[trusted_fn]
fn C.strerror(int) charptr