Fix pedantic warning in tests

This commit is contained in:
William S Fulton 2024-10-30 19:43:45 +00:00
parent 7fb816dcb2
commit 7af22e929a
2 changed files with 2 additions and 2 deletions

View File

@ -52,7 +52,7 @@ template<typename... Args>
template<typename... Args>
static void notifyMyTypesA(void (*fn)(Args...)) {} // conventional function ptr
template<typename... Args>
static void notifyMyTypesB(void fn(Args...)) {}; // unconventional function (ptr)
static void notifyMyTypesB(void fn(Args...)) {} // unconventional function (ptr)
};
%}
%{

View File

@ -10,7 +10,7 @@
const char* pointer_str(A *a){
static char result[1024];
sprintf(result,"%p", a);
sprintf(result, "%p", (void *)a);
return result;
}