opkg: work around a gcc warning bug related to array bounds checking
[openwrt-10.03/.git] / package / opkg / patches / 002-remove-gpg-warning
1 --- opkg-4564/libopkg/opkg_download.c-orig      2008-10-29 22:38:18.000000000 -0500
2 +++ opkg-4564/libopkg/opkg_download.c   2008-10-29 22:39:13.000000000 -0500
3 @@ -335,7 +335,6 @@
4  
5      return status;
6  #else
7 -    opkg_message (conf, OPKG_NOTICE, "Signature check for %s was skipped because GPG support was not enabled in this build\n");
8      return 0;
9  #endif
10  }
11 --- opkg-4564/libopkg/opkg_cmd.c-orig   2008-10-29 22:38:25.000000000 -0500
12 +++ opkg-4564/libopkg/opkg_cmd.c        2008-10-29 22:39:49.000000000 -0500
13 @@ -287,9 +287,6 @@
14           unlink (tmp_file_name);
15           free (tmp_file_name);
16           free (url);
17 -#else
18 -         opkg_message (conf, OPKG_NOTICE, "Signiture check for %s skipped "
19 -              "because GPG support was not enabled in this build\n", src->name);
20  #endif
21           free(list_file_name);
22       }