Skip to content

Commit

Permalink
Fixing some compiler and vscode warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
craigk5n committed May 6, 2023
1 parent b346b28 commit 6970eec
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,4 @@ compile
config.log
config.status
gtimer
*.bak
5 changes: 5 additions & 0 deletions main.c
Original file line number Diff line number Diff line change
Expand Up @@ -168,6 +168,7 @@
#include "project.h"
#include "task.h"
#include "gtimer.h"
#include "gtimeri18n.h"
#include "config.h"
#include "tcpt.h"
#include "http.h"
Expand Down Expand Up @@ -2041,8 +2042,10 @@ static GtkWidget *create_main_window_menu_bar()

actgroup = gtk_action_group_new("ActionMain");
// set translation domain and function
#ifdef DEFAULT_TEXT_DOMAIN
gtk_action_group_set_translation_domain(GTK_ACTION_GROUP(actgroup), DEFAULT_TEXT_DOMAIN);
gtk_action_group_set_translate_func(GTK_ACTION_GROUP(actgroup), mainmenu_translate, NULL, NULL);
#endif
// set entries
gtk_action_group_add_actions (GTK_ACTION_GROUP(actgroup), MM_NormalEntries,
G_N_ELEMENTS(MM_NormalEntries), main_window);
Expand Down Expand Up @@ -2831,7 +2834,9 @@ int main ( int argc, char *argv[] ) {
#endif
// textdomain ( "gtimer" );
#endif
#ifdef DEFAULT_TEXT_DOMAIN
bind_textdomain_codeset(DEFAULT_TEXT_DOMAIN, "UTF-8");
#endif

/* Init GTK */
gtk_init ( &argc, &argv );
Expand Down

0 comments on commit 6970eec

Please sign in to comment.