Skip to content

Commit

Permalink
style: clear compiler warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
lc-soft committed Mar 3, 2020
1 parent 0eb7fe9 commit 62d6e7e
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/router-history.c
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ static void router_history_change(router_history_t *history, router_route_t *to)

void router_history_push(router_history_t *history, router_route_t *route)
{
size_t index = 0;
int index = 0;
router_linkedlist_node_t *next;
router_linkedlist_node_t *node = NULL;

Expand Down
3 changes: 2 additions & 1 deletion src/router-link.c
Original file line number Diff line number Diff line change
Expand Up @@ -91,9 +91,10 @@ static void RouterLink_OnSetAttribute(LCUI_Widget w, const char *name,

static void RouterLink_OnReady(LCUI_Widget w, LCUI_WidgetEvent e, void *arg)
{
const char *name = NULL;
router_t *router;

RouterLink link;
const char *name;
LCUI_Widget parent;

link = Widget_GetData(w, router_link_proto);
Expand Down
3 changes: 2 additions & 1 deletion src/router-view.c
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,9 @@ static void RouterView_OnReady(LCUI_Widget w, LCUI_WidgetEvent e, void *arg)
{
size_t index;
router_t *router;
const char *name;
const char *name = NULL;
const router_route_t *route;

LCUI_Widget parent;
RouterView view;

Expand Down

0 comments on commit 62d6e7e

Please sign in to comment.