forked from pool/gperiodic
343c31f99a
OBS-URL: https://build.opensuse.org/request/show/290848 OBS-URL: https://build.opensuse.org/package/show/science/gperiodic?expand=0&rev=1
42 lines
1.1 KiB
Diff
42 lines
1.1 KiB
Diff
From: Jan Engelhardt <jengelh@inai.de>
|
|
Date: 2015-03-15 11:57:37.631698089 +0100
|
|
|
|
fix blatant errors
|
|
|
|
gcc:
|
|
gperiodic.c: In function 'menu_file_exit':
|
|
gperiodic.c:169:1: warning: control reaches end of non-void function [-Wreturn-type]
|
|
}
|
|
gperiodic.c: In function 'main_prog':
|
|
gperiodic.c:481:9: warning: 'buff' may be used uninitialized in this function [-Wmaybe-uninitialized]
|
|
free(buff);
|
|
|
|
rpmlint:
|
|
I: Program returns random data in a function
|
|
E: gperiodic no-return-in-nonvoid-function gperiodic.c:169
|
|
---
|
|
gperiodic.c | 3 ++-
|
|
1 file changed, 2 insertions(+), 1 deletion(-)
|
|
|
|
Index: gperiodic-3.0.0/gperiodic.c
|
|
===================================================================
|
|
--- gperiodic-3.0.0.orig/gperiodic.c
|
|
+++ gperiodic-3.0.0/gperiodic.c
|
|
@@ -166,6 +166,7 @@ void display_element_dialog( GtkWidget *
|
|
GCallback menu_file_exit(void)
|
|
{
|
|
main_window_exit(NULL,NULL);
|
|
+ return NULL;
|
|
}
|
|
|
|
|
|
@@ -321,7 +322,7 @@ void main_prog(void)
|
|
int menu_num_items;
|
|
GdkColor tooltip_color_bg, tooltip_color_fg;
|
|
int red, gree, blue;
|
|
- char *buff;
|
|
+ char *buff = NULL;
|
|
int i;
|
|
|
|
GtkWidget *menubar;
|