Merge pull request #671 from mstorsjo/c-api-test-warnings
Make the first C function parameter const void* in c_interface_test
This commit is contained in:
commit
21ed4a1f06
@ -2,7 +2,7 @@
|
||||
#include <stddef.h>
|
||||
|
||||
// Cast to this function type to ignore other parameters.
|
||||
typedef int (*Func)(void*);
|
||||
typedef int (*Func)(const void*);
|
||||
#define CALL(p, m) (((Func)((*p)->m))(p))
|
||||
// Check if the function return an expected number.
|
||||
#define CHECK(n, p, m) check(n, CALL(p, m), #m)
|
||||
|
Loading…
x
Reference in New Issue
Block a user