mirror of https://github.com/swig/swig
Fix pedantic warning in tests
This commit is contained in:
parent
7fb816dcb2
commit
7af22e929a
|
@ -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)
|
||||
};
|
||||
%}
|
||||
%{
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue