static unsigned int
regwin_read_pc(int dummy)
{
+ (void) dummy; /* Remove compiler warning about unused variable. */
+
return cpu8051.pc;
}
static void
regwin_write_pc(int param, int val)
{
+ (void) param; /* Remove compiler warning about unused variable. */
+
cpu8051.pc = (u_int16_t) val;
}
static unsigned int
regwin_read_bank(int dummy)
{
+ (void) dummy; /* Remove compiler warning about unused variable. */
+
return regwin_read_bank_offset() >> 3;
}
{
u_int8_t psw = memory_sfr_read8(_PSW_);
+ (void) param; /* Remove compiler warning about unused variable. */
+
if ((bank_number < 0) || (bank_number > 3)) {
log_info("Error: invalid bank number: %d", bank_number);
bank_number = 0;
static gboolean
emugtk_running(gpointer data)
{
+ (void) data; /* Remove compiler warning about unused variable. */
+
cpu8051_Exec();
if (IsBreakpoint(cpu8051.pc)) {
log_info("Breakpoint Hit");
static void
emugtk_ResetEvent(GtkWidget *widget, GdkEvent *event, gpointer data)
{
+ /* Remove compiler warning about unused variables. */
+ (void) widget;
+ (void) event;
+ (void) data;
+
log_info("ResetEvent()");
emugtk_stop_running();
emugtk_Reset();
static void
emugtk_RunEvent(GtkWidget *widget, GdkEvent *event, gpointer data)
{
+ /* Remove compiler warning about unused variables. */
+ (void) widget;
+ (void) event;
+ (void) data;
+
log_info("RunEvent()");
if (running)
static void
emugtk_StopEvent(GtkWidget *widget, GdkEvent *event, gpointer data)
{
+ /* Remove compiler warning about unused variables. */
+ (void) widget;
+ (void) event;
+ (void) data;
+
log_info("StopEvent()");
emugtk_stop_running();
}
static void
emugtk_StepEvent(GtkWidget *widget, GdkEvent *event, gpointer data)
{
+ /* Remove compiler warning about unused variables. */
+ (void) widget;
+ (void) event;
+ (void) data;
+
log_info("StepEvent()");
emugtk_stop_running();
emugtk_Step();
static int
mainwin_configure_event(GtkWindow *window, GdkEvent *event, gpointer data)
{
+ /* Remove compiler warning about unused variables. */
+ (void) window;
+ (void) data;
+
cfg->win_width = event->configure.width;
cfg->win_height = event->configure.height;
{
GtkWidget *paned = data;
+ /* Remove compiler warning about unused variables. */
+ (void) window;
+ (void) event;
+
cfg->hpane_pos = gtk_paned_get_position(GTK_PANED(paned));
}
{
GtkWidget *paned = data;
+ /* Remove compiler warning about unused variables. */
+ (void) window;
+ (void) event;
+
cfg->vpane_pos = gtk_paned_get_position(GTK_PANED(paned));
}
{
GtkWidget *paned = data;
+ /* Remove compiler warning about unused variables. */
+ (void) window;
+ (void) event;
+
cfg->main_pane_pos = gtk_paned_get_position(GTK_PANED(paned));
}
char *dir;
char *cwd = NULL;
+ /* Remove compiler warning about unused variables. */
+ (void) object;
+ (void) data;
+
log_info("FileOpenEvent()");
/* Create a new file selection widget. */
static void
FileQuitEvent(gchar *string)
{
+ /* Remove compiler warning about unused variables. */
+ (void) string;
+
emugtk_quit_gui();
}
static void
HelpCommandsEvent(gchar *string)
{
+ (void) string; /* Remove compiler warning about unused variables. */
+
ShowMessage("Command Line Options", COMMAND_LINE_OPTIONS,
GTK_JUSTIFY_LEFT, MESSAGE_DIALOG_FIXED_FONT);
}
static void
HelpAboutEvent(GtkWidget *widget, gpointer data)
{
+ /* Remove compiler warning about unused variables. */
+ (void) widget;
+ (void) data;
+
const char *authors[] = {
"Hugo Villeneuve <hugo@hugovil.com>",
"Jonathan St-André",
GtkTreeModel *model;
GtkTreeIter iter;
+ /* Remove compiler warning about unused variables. */
+ (void) widget;
+ (void) event;
+ (void) data;
+
log_debug("pgmwin_sel_changed_event()");
/* This will only work in single or browse selection mode! */
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");
}
void toggle_int_memory(GtkWidget *widget, gpointer data)
{
+ (void) data; /* Remove compiler warning about unused variables. */
+
if (gtk_check_menu_item_get_active(GTK_CHECK_MENU_ITEM(widget))) {
log_info(" View internal memory");
cfg->view_int_memory = 1;
void toggle_sfr_memory(GtkWidget *widget, gpointer data)
{
+ (void) data; /* Remove compiler warning about unused variables. */
+
if (gtk_check_menu_item_get_active(GTK_CHECK_MENU_ITEM(widget))) {
log_info(" View SFR memory");
cfg->view_sfr_memory = 1;
void toggle_ext_memory(GtkWidget *widget, gpointer data)
{
+ (void) data; /* Remove compiler warning about unused variables. */
+
if (gtk_check_menu_item_get_active(GTK_CHECK_MENU_ITEM(widget))) {
log_info(" View external memory");
cfg->view_ext_memory = 1;