Skip to content

Commit

Permalink
Merge pull request #161 from step-/gcc14
Browse files Browse the repository at this point in the history
fixing no compile with gcc-14
  • Loading branch information
peabee committed Apr 20, 2024
2 parents 6e244d4 + 7670655 commit 6e46ac6
Show file tree
Hide file tree
Showing 10 changed files with 20 additions and 2 deletions.
2 changes: 2 additions & 0 deletions src/actions.c
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,8 @@
#include "tag_attributes.h"
#include "config.h"

int gtkdialog_parse(void);

extern gchar *option_include_file;

/* Local function prototypes */
Expand Down
5 changes: 4 additions & 1 deletion src/automaton.c
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,9 @@

#undef TOOLTIPS

int instruction_execute(instruction);
void push_widget(GtkWidget *, int);

extern gboolean option_no_warning;

instruction *program = NULL;
Expand Down Expand Up @@ -332,7 +335,7 @@ print_program()

for (pc = 0; pc < instruction_counter; ++pc) {
command = program[pc];
g_printf("%5d ", pc);
printf("%5d ", pc);
print_command(command);
}
}
Expand Down
1 change: 1 addition & 0 deletions src/glade_support.c
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ typedef struct _gtkdialog_signal {

/* function prototypes */
gint widget_get_type_from_pointer(GtkWidget *widget);
int execute_action(GtkWidget *widget, const char *command, const char *type);

/*
** Signal handler callbascks.
Expand Down
1 change: 1 addition & 0 deletions src/gtkdialog.c
Original file line number Diff line number Diff line change
Expand Up @@ -627,6 +627,7 @@ main(int argc, char *argv[])
gtk_init(&argc, &argv);

#if HAVE_GLADE_LIB
void run_program_by_glade(const gchar *filename, const gchar *window_name);
if (option_glade_file != NULL) {
run_program_by_glade(option_glade_file, option_input_variable);
exit(EXIT_SUCCESS);
Expand Down
2 changes: 2 additions & 0 deletions src/gtkdialog_lexer.l
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,8 @@
#include "gtkdialog_parser.h"

static gchar *process_string(gchar *str);
int getnextchar(void);
int gtkdialog_error(char *);

extern int linenumber;
gchar *Token;
Expand Down
4 changes: 4 additions & 0 deletions src/gtkdialog_parser.y
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,10 @@ extern gboolean option_print_ir;
//
int yywarning(char *c);
void yyerror_simple(char *c);
void run_program(void);
void print_program(void);
int gtkdialog_lex(void);
int gtkdialog_error(char *);

static inline void
start_up(void)
Expand Down
1 change: 1 addition & 0 deletions src/stringman.c
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@
#include <stdlib.h>
#include <unistd.h>
#include <string.h>
#include <ctype.h>
#include <gtk/gtk.h>

#include "gtkdialog.h"
Expand Down
4 changes: 3 additions & 1 deletion src/variables.c
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,8 @@

extern gboolean option_no_warning;

int yywarning (char *);

/* Local function prototypes */
#ifdef DEBUG
void variables_print_one(variable *var);
Expand Down Expand Up @@ -1119,7 +1121,7 @@ static gint do_variables_count_widgets(variable *actual, gint n)
actual = root;

if (actual == NULL)
return;
return n;

if (actual->left != NULL)
n = do_variables_count_widgets(actual->left, n);
Expand Down
1 change: 1 addition & 0 deletions src/widget_notebook.c
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
#include "automaton.h"
#include "widgets.h"
#include "tag_attributes.h"
#include "signals.h"

/* Defines */
//#define DEBUG_CONTENT
Expand Down
1 change: 1 addition & 0 deletions src/widget_timer.c
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
#include "automaton.h"
#include "widgets.h"
#include "tag_attributes.h"
#include "signals.h"

/* Defines */
//#define DEBUG_CONTENT
Expand Down

0 comments on commit 6e46ac6

Please sign in to comment.