Fix some more -Wextra warnings.
Fix to inpcom.c removed by HVO
This commit is contained in:
parent
fbb88d6e8d
commit
72df67271c
|
|
@ -550,6 +550,7 @@ static int get_sysmem(struct sys_mem *memall)
|
||||||
#else
|
#else
|
||||||
|
|
||||||
|
|
||||||
|
# ifdef notdef
|
||||||
#include <signal.h>
|
#include <signal.h>
|
||||||
#include <setjmp.h>
|
#include <setjmp.h>
|
||||||
|
|
||||||
|
|
@ -625,6 +626,7 @@ baseaddr(void)
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
|
||||||
|
|
@ -238,10 +238,12 @@ void cm_d_tristate(ARGS)
|
||||||
if (idp[1].when <= TIME) {
|
if (idp[1].when <= TIME) {
|
||||||
if (str == out->strength) {
|
if (str == out->strength) {
|
||||||
s_ctl = Idle;
|
s_ctl = Idle;
|
||||||
idp[1].prev = str;
|
// quietly rude
|
||||||
|
idp[1].prev = (Digital_State_t)str;
|
||||||
} else {
|
} else {
|
||||||
s_ctl = Normal;
|
s_ctl = Normal;
|
||||||
idp[1].prev = out->strength;
|
// quietly rude
|
||||||
|
idp[1].prev = (Digital_State_t)out->strength;
|
||||||
idp[1].when = TIME + OUTPUT_DELAY(out);
|
idp[1].when = TIME + OUTPUT_DELAY(out);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
|
|
||||||
|
|
@ -108,7 +108,7 @@ static char *get_string(char **s, int is_array, Mif_Token_Type_t *token_type)
|
||||||
end = *s;
|
end = *s;
|
||||||
ret_str = copy_substring(beg, end);
|
ret_str = copy_substring(beg, end);
|
||||||
}
|
}
|
||||||
*token_type = MIF_STRING;
|
*token_type = MIF_STRING_TOK;
|
||||||
return ret_str;
|
return ret_str;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue