~ubuntu-branches/ubuntu/wily/modem-manager-gui/wily-proposed

« back to all changes in this revision

Viewing changes to debian/patches/clang_FTBFS_Wreturn-type.patch

  • Committer: Package Import Robot
  • Author(s): Graham Inggs
  • Date: 2014-06-08 11:41:49 UTC
  • Revision ID: package-import@ubuntu.com-20140608114149-lj0l2jjwh9k369ga
Tags: 0.0.16-3
* Change architecture to linux-any (Closes: #721782).
* New d/patches/clang_FTBFS_Wreturn-type.patch:
  Non-void functions should return a value (Closes: #743741).
  (Fixes FTBFS with clang instead of gcc)
* Bump Standards-Version to 3.9.5, no changes.
* Update d/watch.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
Description: fix FTBFS with clang instead of gcc
 
2
Author: Nicolas Sévelin-Radiguet <nicosr@free.fr>
 
3
Last-Update: 2014-04-05
 
4
 
 
5
--- a/src/libpaths.c
 
6
+++ b/src/libpaths.c
 
7
@@ -294,7 +294,7 @@
 
8
        guint ptr, start, end, entry, entries;
 
9
        gchar *entryhash, *entryname, *entryext;
 
10
        
 
11
-       if (libcache == NULL) return;
 
12
+       if (libcache == NULL) return 0;
 
13
        
 
14
        /*Cache file must be terminated with value 0x00*/
 
15
        if (libcache->mapping[libcache->mapsize-1] != 0x00) {
 
16
--- a/src/main.c
 
17
+++ b/src/main.c
 
18
@@ -732,7 +732,7 @@
 
19
                
 
20
        appdata = (mmgui_application_data_t)data;
 
21
        
 
22
-       if (appdata == NULL) return;
 
23
+       if (appdata == NULL) return FALSE;
 
24
        
 
25
        currenttime = time(NULL);
 
26
        
 
27
@@ -1425,7 +1425,7 @@
 
28
        
 
29
        mmguiapp = (mmgui_application_t)data;
 
30
        
 
31
-       if (mmguiapp == NULL) return;
 
32
+       if (mmguiapp == NULL) return FALSE;
 
33
        
 
34
        if (mmguiapp->options->askforhide) {
 
35
                /*Ask at exit*/
 
36
@@ -1752,7 +1752,7 @@
 
37
        
 
38
        mmguiapp = (mmgui_application_t)data;
 
39
        
 
40
-       if (mmguiapp == NULL) return;
 
41
+       if (mmguiapp == NULL) return FALSE;
 
42
        
 
43
        if (mmguicore_devices_get_current(mmguiapp->core) != NULL) {
 
44
                unreadmessages = mmgui_smsdb_get_unread_messages(mmguicore_devices_get_sms_db(mmguiapp->core));
 
45
@@ -1795,7 +1795,7 @@
 
46
        guint id, contacttype;
 
47
        mmgui_contact_t contact;
 
48
        
 
49
-       if (mmguiapp == NULL) return;
 
50
+       if (mmguiapp == NULL) return 0;
 
51
        
 
52
        model = gtk_tree_view_get_model(GTK_TREE_VIEW(mmguiapp->window->contactstreeview));
 
53
        selection = gtk_tree_view_get_selection(GTK_TREE_VIEW(mmguiapp->window->contactstreeview));
 
54
@@ -2958,8 +2958,8 @@
 
55
        
 
56
        mmguiapp = (mmgui_application_t)data;
 
57
        
 
58
-       if (mmguiapp == NULL) return;
 
59
-       if (mmguiapp->core == NULL) return;
 
60
+       if (mmguiapp == NULL) return FALSE;
 
61
+       if (mmguiapp->core == NULL) return FALSE;
 
62
        
 
63
        device = mmguicore_devices_get_current(mmguiapp->core);
 
64
        
 
65
@@ -2995,8 +2995,8 @@
 
66
                
 
67
        mmguiapp = (mmgui_application_t)data;
 
68
        
 
69
-       if (mmguiapp == NULL) return;
 
70
-       if (mmguiapp->core == NULL) return;
 
71
+       if (mmguiapp == NULL) return FALSE;
 
72
+       if (mmguiapp->core == NULL) return FALSE;
 
73
        
 
74
        device = mmguicore_devices_get_current(mmguiapp->core);
 
75
        
 
76
@@ -4183,7 +4183,7 @@
 
77
        gint smsvalidflags;
 
78
        enum _mmgui_main_new_sms_dialog_result result;
 
79
        
 
80
-       if (mmguiapp == NULL) return;
 
81
+       if (mmguiapp == NULL) return 0;
 
82
        
 
83
        smsvalidflags = MMGUI_MAIN_NEW_SMS_VALIDATION_VALID;
 
84