netplug-1.2.9-disable-werror.patch 841 B

12345678910111213141516171819202122
  1. netplug uses nested functions, and gcc generates a warning that
  2. is turned into an error:
  3. cc1: warnings being treated as errors
  4. if_info.c: In function 'ifsm_scriptdone':
  5. if_info.c:289: error: generating trampoline in object (requires executable stack)
  6. Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
  7. Index: netplug-1.2.9/Makefile
  8. ===================================================================
  9. --- netplug-1.2.9.orig/Makefile 2010-05-09 21:07:40.000000000 +0200
  10. +++ netplug-1.2.9/Makefile 2010-05-09 21:09:32.000000000 +0200
  11. @@ -9,7 +9,7 @@
  12. install_opts :=
  13. -CFLAGS += -Wall -Werror -std=gnu99 -DNP_ETC_DIR='"$(etcdir)"' \
  14. +CFLAGS += -Wall -std=gnu99 -DNP_ETC_DIR='"$(etcdir)"' \
  15. -DNP_SCRIPT_DIR='"$(scriptdir)"' -ggdb3 -O3 -DNP_VERSION='"$(version)"'
  16. netplugd: config.o netlink.o lib.o if_info.o main.o