libtt: Resolve some compiler warnings
This commit is contained in:
@@ -42,6 +42,7 @@
|
||||
* be growing the array when out of room.
|
||||
*/
|
||||
|
||||
#include <stdint.h>
|
||||
#include <stdlib.h>
|
||||
#include <stdio.h>
|
||||
#include "api/c/api_storage.h"
|
||||
@@ -63,7 +64,7 @@ mark()
|
||||
_Tt_api_stg_stack_elm_ptr e = new _Tt_api_stg_stack_elm;
|
||||
|
||||
e->entry_type = _Tt_api_stg_stack_elm::STACK_MARK;
|
||||
e->addr = (caddr_t) result;
|
||||
e->addr = (caddr_t) (intptr_t) result;
|
||||
stack->push(e);
|
||||
return result;
|
||||
}
|
||||
@@ -83,7 +84,7 @@ release(int mark)
|
||||
if (c->entry_type == _Tt_api_stg_stack_elm::STACK_MARK)
|
||||
/* It is better to promote mark to caddr_t than to demote addr
|
||||
field for a 64 bit arch */
|
||||
if (c->addr == (caddr_t) mark) {
|
||||
if (c->addr == (caddr_t) (intptr_t) mark) {
|
||||
found = 1;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -552,6 +552,7 @@
|
||||
# define OPT_AUTOMOUNT_PATH_FIX
|
||||
# define OPT_BUG_RPCINTR
|
||||
# undef OPT_XTHREADS
|
||||
# define OPT_CONST_CORRECT
|
||||
|
||||
#elif defined(__OpenBSD__)
|
||||
|
||||
|
||||
@@ -90,7 +90,7 @@ iscntl(isfd, func, va_alist)
|
||||
va_dcl
|
||||
#endif
|
||||
{
|
||||
extern int (*_isfatal_error_set_func())();
|
||||
extern int ( *_isfatal_error_set_func)();
|
||||
va_list pvar;
|
||||
int ret;
|
||||
|
||||
@@ -106,7 +106,7 @@ iscntl(isfd, func, va_alist)
|
||||
break;
|
||||
|
||||
case ISCNTL_FATAL:
|
||||
ret = (int)_isfatal_error_set_func(va_arg(pvar, intfunc));
|
||||
ret = _isfatal_error_set_func(va_arg(pvar, intfunc));
|
||||
break;
|
||||
|
||||
case ISCNTL_FDLIMIT_SET:
|
||||
|
||||
Reference in New Issue
Block a user