diff options
author | Felix Fietkau <nbd@openwrt.org> | 2014-10-24 18:05:51 +0000 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2014-10-24 18:05:51 +0000 |
commit | fc822a4370f534ad83de092a2a9ababa94ebee8b (patch) | |
tree | de1cc2437b8ee9725ae243faae72b1abd7e297d0 /package | |
parent | 9ac5cfe1ba90af3cf2bfca1179f8c3c1dc4c5689 (diff) | |
download | mtk-20170518-fc822a4370f534ad83de092a2a9ababa94ebee8b.zip mtk-20170518-fc822a4370f534ad83de092a2a9ababa94ebee8b.tar.gz mtk-20170518-fc822a4370f534ad83de092a2a9ababa94ebee8b.tar.bz2 |
broadcom_wl: eliminate compiler error with gcc-4.9-linaro
Attempting to build broadcom_wl (from trunk) with the linaro 4.9.x
toolchain produces the following errors:
<...>/wl_linux.c: In function 'wl_dump_ver':
<...>/wl_linux.c:2302:3: error: macro "__DATE__" might prevent reproducible builds [-Werror=date-time]
__DATE__, __TIME__, EPI_VERSION_STR);
^
<...>/wl_linux.c:2302:13: error: macro "__TIME__" might prevent reproducible builds [-Werror=date-time]
__DATE__, __TIME__, EPI_VERSION_STR);
^
cc1: some warnings being treated as errors
Remove the use of the __DATE__ and __TIME__ macros, as the info is not
really useful.
Signed-off-by: Nathan Hintz <nlhintz@hotmail.com>
SVN-Revision: 43046
Diffstat (limited to 'package')
-rw-r--r-- | package/kernel/broadcom-wl/patches/914-eliminate-date-time-error.patch | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/package/kernel/broadcom-wl/patches/914-eliminate-date-time-error.patch b/package/kernel/broadcom-wl/patches/914-eliminate-date-time-error.patch new file mode 100644 index 0000000..394a06d --- /dev/null +++ b/package/kernel/broadcom-wl/patches/914-eliminate-date-time-error.patch @@ -0,0 +1,21 @@ +--- a/driver/wl_linux.c ++++ b/driver/wl_linux.c +@@ -762,7 +762,7 @@ wl_attach(uint16 vendor, uint16 device, + dev->name, device); + + #ifdef BCMDBG +- printf(" (Compiled in " SRCBASE " at " __TIME__ " on " __DATE__ ")"); ++ printf(" (Compiled in " SRCBASE ")"); + #endif /* BCMDBG */ + printf("\n"); + +@@ -2298,8 +2298,7 @@ wl_sendup(wl_info_t *wl, wl_if_t *wlif, + void + wl_dump_ver(wl_info_t *wl, struct bcmstrbuf *b) + { +- bcm_bprintf(b, "wl%d: %s %s version %s\n", wl->pub->unit, +- __DATE__, __TIME__, EPI_VERSION_STR); ++ bcm_bprintf(b, "wl%d: version %s\n", wl->pub->unit, EPI_VERSION_STR); + } + + #ifdef BCMDBG |