* [Buildroot] [PATCH] dropwatch: Remove -Werror from CFLAGS
@ 2013-10-17 8:33 Markos Chandras
2013-10-22 8:58 ` Peter Korsgaard
0 siblings, 1 reply; 2+ messages in thread
From: Markos Chandras @ 2013-10-17 8:33 UTC (permalink / raw)
To: buildroot
-Werror shouldn't be used in released code since it can
cause random build failures on moderate warnings. It also
depends on the used toolchain since different toolchains may
or may not print the same warnings.
Fixes the following build problem on MIPS64/n64:
main.c: In function handle_dm_alert_msg:
main.c:336:5: error: format %llx expects argument of
type long long unsigned int, but argument 4 has
type __u64 [-Werror=format=]
Signed-off-by: Markos Chandras <markos.chandras@imgtec.com>
---
package/dropwatch/dropwatch-03-remove-werror.patch | 18 ++++++++++++++++++
1 file changed, 18 insertions(+)
create mode 100644 package/dropwatch/dropwatch-03-remove-werror.patch
diff --git a/package/dropwatch/dropwatch-03-remove-werror.patch b/package/dropwatch/dropwatch-03-remove-werror.patch
new file mode 100644
index 0000000..97b26b7
--- /dev/null
+++ b/package/dropwatch/dropwatch-03-remove-werror.patch
@@ -0,0 +1,18 @@
+-Werror shouldn't be used in released code since it can
+cause random build failures on moderate warnings. It also
+depends on the used toolchain since different toolchains may
+or may not print the same warnings.
+
+Signed-off-by: Markos Chandras <markos.chandras@imgtec.com>
+
+Index: dropwatch-1.4/src/Makefile
+===================================================================
+--- dropwatch-1.4.orig/src/Makefile
++++ dropwatch-1.4/src/Makefile
+@@ -1,5 +1,5 @@
+ all: dropwatch
+-CFLAGS+=-c -g -D_GNU_SOURCE -Wall -Werror `pkg-config --cflags libnl-3.0`
++CFLAGS+=-c -g -D_GNU_SOURCE -Wall `pkg-config --cflags libnl-3.0`
+ LDFLAGS=-lbfd -lreadline -lnl-3 -lnl-genl-3
+ OBJFILES := main.o lookup.o\
+ lookup_bfd.o lookup_kas.o
--
1.8.4
^ permalink raw reply related [flat|nested] 2+ messages in thread
* [Buildroot] [PATCH] dropwatch: Remove -Werror from CFLAGS
2013-10-17 8:33 [Buildroot] [PATCH] dropwatch: Remove -Werror from CFLAGS Markos Chandras
@ 2013-10-22 8:58 ` Peter Korsgaard
0 siblings, 0 replies; 2+ messages in thread
From: Peter Korsgaard @ 2013-10-22 8:58 UTC (permalink / raw)
To: buildroot
>>>>> "Markos" == Markos Chandras <markos.chandras@imgtec.com> writes:
> -Werror shouldn't be used in released code since it can
> cause random build failures on moderate warnings. It also
> depends on the used toolchain since different toolchains may
> or may not print the same warnings.
> Fixes the following build problem on MIPS64/n64:
Committed, thanks.
--
Bye, Peter Korsgaard
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2013-10-22 8:58 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-10-17 8:33 [Buildroot] [PATCH] dropwatch: Remove -Werror from CFLAGS Markos Chandras
2013-10-22 8:58 ` Peter Korsgaard
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox