Remove some GCC library warnings
This commit is contained in:
parent
e090013056
commit
ac900e59ba
3 changed files with 6 additions and 2 deletions
|
@ -17,6 +17,7 @@ abort(void)
|
|||
{
|
||||
if (_clean) _clean(); /* flush all output files */
|
||||
raise(SIGABRT);
|
||||
exit(-1);
|
||||
/* NORETURN */
|
||||
}
|
||||
|
||||
|
|
|
@ -9,6 +9,9 @@ settimeofday.c
|
|||
|
||||
int settimeofday(const struct timeval *tp, const void *tzp)
|
||||
{
|
||||
/* Use intermediate variable because stime param is not const */
|
||||
time_t sec = tp->tv_sec;
|
||||
|
||||
/* Ignore time zones */
|
||||
return stime(&tp->tv_sec);
|
||||
return stime(&sec);
|
||||
}
|
||||
|
|
|
@ -22,7 +22,7 @@
|
|||
PRIVATE char cpath[CPROF_CPATH_MAX_LEN]; /* current call path string */
|
||||
PRIVATE int cpath_len; /* current call path len */
|
||||
PRIVATE struct cprof_tbl_s *cprof_slot; /* slot of current function */
|
||||
PRIVATE struct stack_s { /* stack entry */
|
||||
struct stack_s { /* stack entry */
|
||||
int cpath_len; /* call path len */
|
||||
struct cprof_tbl_s *slot; /* table slot */
|
||||
u64_t start_1; /* count @ begin of procentry */
|
||||
|
|
Loading…
Reference in a new issue