Skip to content

Commit 6e46ac6

Browse files
authored
Merge pull request #161 from step-/gcc14
fixing no compile with gcc-14
2 parents 6e244d4 + 7670655 commit 6e46ac6

File tree

10 files changed

+20
-2
lines changed

10 files changed

+20
-2
lines changed

src/actions.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,8 @@
3838
#include "tag_attributes.h"
3939
#include "config.h"
4040

41+
int gtkdialog_parse(void);
42+
4143
extern gchar *option_include_file;
4244

4345
/* Local function prototypes */

src/automaton.c

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,9 @@
8787

8888
#undef TOOLTIPS
8989

90+
int instruction_execute(instruction);
91+
void push_widget(GtkWidget *, int);
92+
9093
extern gboolean option_no_warning;
9194

9295
instruction *program = NULL;
@@ -332,7 +335,7 @@ print_program()
332335

333336
for (pc = 0; pc < instruction_counter; ++pc) {
334337
command = program[pc];
335-
g_printf("%5d ", pc);
338+
printf("%5d ", pc);
336339
print_command(command);
337340
}
338341
}

src/glade_support.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ typedef struct _gtkdialog_signal {
4444

4545
/* function prototypes */
4646
gint widget_get_type_from_pointer(GtkWidget *widget);
47+
int execute_action(GtkWidget *widget, const char *command, const char *type);
4748

4849
/*
4950
** Signal handler callbascks.

src/gtkdialog.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -627,6 +627,7 @@ main(int argc, char *argv[])
627627
gtk_init(&argc, &argv);
628628

629629
#if HAVE_GLADE_LIB
630+
void run_program_by_glade(const gchar *filename, const gchar *window_name);
630631
if (option_glade_file != NULL) {
631632
run_program_by_glade(option_glade_file, option_input_variable);
632633
exit(EXIT_SUCCESS);

src/gtkdialog_lexer.l

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,8 @@
4444
#include "gtkdialog_parser.h"
4545

4646
static gchar *process_string(gchar *str);
47+
int getnextchar(void);
48+
int gtkdialog_error(char *);
4749

4850
extern int linenumber;
4951
gchar *Token;

src/gtkdialog_parser.y

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,10 @@ extern gboolean option_print_ir;
6060
//
6161
int yywarning(char *c);
6262
void yyerror_simple(char *c);
63+
void run_program(void);
64+
void print_program(void);
65+
int gtkdialog_lex(void);
66+
int gtkdialog_error(char *);
6367

6468
static inline void
6569
start_up(void)

src/stringman.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@
3232
#include <stdlib.h>
3333
#include <unistd.h>
3434
#include <string.h>
35+
#include <ctype.h>
3536
#include <gtk/gtk.h>
3637

3738
#include "gtkdialog.h"

src/variables.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,8 @@
6161

6262
extern gboolean option_no_warning;
6363

64+
int yywarning (char *);
65+
6466
/* Local function prototypes */
6567
#ifdef DEBUG
6668
void variables_print_one(variable *var);
@@ -1119,7 +1121,7 @@ static gint do_variables_count_widgets(variable *actual, gint n)
11191121
actual = root;
11201122

11211123
if (actual == NULL)
1122-
return;
1124+
return n;
11231125

11241126
if (actual->left != NULL)
11251127
n = do_variables_count_widgets(actual->left, n);

src/widget_notebook.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@
2828
#include "automaton.h"
2929
#include "widgets.h"
3030
#include "tag_attributes.h"
31+
#include "signals.h"
3132

3233
/* Defines */
3334
//#define DEBUG_CONTENT

src/widget_timer.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@
2828
#include "automaton.h"
2929
#include "widgets.h"
3030
#include "tag_attributes.h"
31+
#include "signals.h"
3132

3233
/* Defines */
3334
//#define DEBUG_CONTENT

0 commit comments

Comments
 (0)