build/sim/core/modules: fix compilation warnings

This commit is contained in:
Ilia Sergachev 2020-06-16 01:06:11 +02:00
parent 68d3804cdb
commit 3610b066c2
6 changed files with 12 additions and 13 deletions

View File

@ -10,7 +10,7 @@ struct session_s {
static int litex_sim_module_pads_get( struct pad_s *pads, char *name, void **signal)
{
int ret;
int ret = RC_OK;
void *sig=NULL;
int i;

View File

@ -74,7 +74,7 @@ out:
static int litex_sim_module_pads_get(struct pad_s *pads, char *name, void **signal)
{
int ret;
int ret = RC_OK;
void *sig = NULL;
int i;

View File

@ -27,7 +27,7 @@ struct session_s {
struct event_base *base;
static int litex_sim_module_pads_get(struct pad_s *pads, char *name, void **signal)
{
int ret;
int ret = RC_OK;
void *sig = NULL;
int i;

View File

@ -62,7 +62,7 @@ out:
static int litex_sim_module_pads_get( struct pad_s *pads, char *name, void **signal)
{
int ret;
int ret = RC_OK;
void *sig = NULL;
int i;

View File

@ -403,7 +403,7 @@ static void spdeeprom_from_file(struct session_s *s, FILE *file)
static int litex_sim_module_pads_get(struct pad_s *pads, char *name, void **signal)
{
int ret;
int ret = RC_OK;
void *sig=NULL;
int i;

View File

@ -96,7 +96,7 @@ out:
static int litex_sim_module_pads_get(struct pad_s *pads, char *name, void **signal)
{
int ret;
int ret = RC_OK;
void *sig = NULL;
int i;
@ -358,7 +358,6 @@ static int xgmii_ethernet_tick(void *sess)
printf("Received: %ld\n", s->ethpack->len );
for(int i=0; i< s->ethpack->len;) {
printf("%02x ", s->inbuf[i++] & 0xff);
if (i%8 == 0 && i > 0);
}
printf("\n");
s->inlen = s->ethpack->len;