File: compiler-warnings.patch

package info (click to toggle)
awffull 3.10.2-11
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 7,300 kB
  • sloc: ansic: 10,355; sh: 4,587; xml: 2,198; perl: 271; makefile: 40; sed: 16
file content (64 lines) | stat: -rw-r--r-- 2,300 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
Description: Fix some compiler warnings.
Author: Yavor Doganov <yavor@gnu.org>
Forwarded: no
Last-Update: 2023-11-21
---

--- awffull.orig/src/hashtab.c
+++ awffull/src/hashtab.c
@@ -123,7 +123,7 @@
         VPRINT(VERBOSE3, "STR: %s", str);
         str[nodemax[nodetype]] = 0;
         len = nodemax[nodetype];
-        VPRINT(VERBOSE3, "  --> %d %s\n", len, str);
+        VPRINT(VERBOSE3, "  --> %lu %s\n", len, str);
     }
     return (len);
 }
--- awffull.orig/src/linklist.c
+++ awffull/src/linklist.c
@@ -229,9 +229,9 @@
     size_t str_length, tmp_length;
 
     str_length = strlen(str);
-    VPRINT(VERBOSE5, "Trying for: %s : %d\n", str, str_length);
+    VPRINT(VERBOSE5, "Trying for: %s : %lu\n", str, str_length);
     while (lptr != NULL) {
-        VPRINT(VERBOSE5, "  Against: %s : %d\n", lptr->string, lptr->length);
+        VPRINT(VERBOSE5, "  Against: %s : %lu\n", lptr->string, lptr->length);
         if (lptr->wildcard_end && lptr->wildcard_start) {
             return lptr->name;
         } else {
@@ -280,7 +280,7 @@
     int i, j;
     char *s;
 
-    VPRINT(VERBOSE5, "    BMH: _%s_ -> %d ; _%s_ -> %d\n", search_target, stringlen, ptn_ptr->string, ptn_ptr->length);
+    VPRINT(VERBOSE5, "    BMH: _%s_ -> %lu ; _%s_ -> %lu\n", search_target, stringlen, ptn_ptr->string, ptn_ptr->length);
     i = ptn_ptr->length - 1 - stringlen;
     if (i >= 0) {
         return NULL;
@@ -311,10 +311,10 @@
     VPRINT(VERBOSE0, "  List: %s", listname);
 
     if (lptr == NULL) {
-        VPRINT(VERBOSE0, " has no entries. %s\n", lptr->string);
+        VPRINT(VERBOSE0, " has no entries.\n");
         return;
     } else
-        VPRINT(VERBOSE0, "%s", "\n");
+        VPRINT(VERBOSE0, "%s\n", lptr->string);
 
     while (lptr != NULL) {
         VPRINT(VERBOSE0, "    Matched: %7lu  ", lptr->matched);
--- awffull.orig/src/messages.c
+++ awffull/src/messages.c
@@ -60,7 +60,7 @@
     strptime(date, "%Y-%m-%d %H:%M:%S", &t);
     ret = strftime(name, name_size, (short_name ? "%b" : "%B"), &t);
     if (ret == 0 || ret > name_size) {
-        ERRVPRINT(VERBOSE0, "FATAL ERROR! get_month_name() failed: %d %d %d\n", month, short_name, ret);
+        ERRVPRINT(VERBOSE0, "FATAL ERROR! get_month_name() failed: %d %d %lu\n", month, short_name, ret);
         exit(1);
     }