projects
/
emu8051.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add better error checking when loading invalid hex files
[emu8051.git]
/
src
/
gtk
/
regwin.c
diff --git
a/src/gtk/regwin.c
b/src/gtk/regwin.c
index
8c4cd4d
..
8b470a9
100644
(file)
--- a/
src/gtk/regwin.c
+++ b/
src/gtk/regwin.c
@@
-82,6
+82,8
@@
regwin_cell_edited(GtkCellRendererText *cell, gchar *path_string,
char *str;
struct regwin_infos_t *regwin_infos;
char *str;
struct regwin_infos_t *regwin_infos;
+ (void) cell; /* Remove compiler warning about unused variables. */
+
if (!model) {
g_error("Unable to get model from cell renderer");
}
if (!model) {
g_error("Unable to get model from cell renderer");
}
@@
-237,7
+239,7
@@
regwin_refresh(void)
}
if (!valid) {
}
if (!valid) {
-
printf("Invalid iter...\n
");
+
log_err("Tree model: invalid iter
");
return;
}
return;
}