Merge pull request #568 from sergachev/master

build/sim/core/modules: fix compilation warnings
This commit is contained in:
enjoy-digital 2020-06-16 17:34:50 +02:00 committed by GitHub
commit c3ed802526
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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;