Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Drop -Wno-unused and add flags to Makefile

  • Loading branch information...
commit b7f508ff8e3d686196c1c473ef16c87d27a77930 1 parent 8cbc170
Patrick Lucas patricklucas authored
Showing with 5 additions and 6 deletions.
  1. +2 −2 Makefile
  2. +3 −4 setup.py
4 Makefile
View
@@ -13,8 +13,8 @@ objects = $(HTTP_PARSER_OBJ) \
$(wildcard $(SOURCE_DIR)/*.c))
CPPFLAGS += $(PYTHON_INCLUDE) -I . -I $(SOURCE_DIR) -I $(HTTP_PARSER_DIR)
-CFLAGS += $(FEATURES) -std=c99 -fno-strict-aliasing -Wall -Wextra \
- -Wno-unused -g -O0 -fPIC
+CFLAGS += $(FEATURES) -std=c99 -fno-strict-aliasing -fcommon -fPIC -Wall \
+ -Wextra -Wno-unused-parameter -Wno-missing-field-initializers -g -O0
LDFLAGS += $(PYTHON_LDFLAGS) -l ev -shared -fcommon
ifneq ($(WANT_SENDFILE), no)
7 setup.py
View
@@ -12,10 +12,9 @@
include_dirs = ['http-parser'],
define_macros = [('WANT_SENDFILE', '1'),
('WANT_SIGINT_HANDLING', '1')],
- extra_compile_args = ['-std=c99', '-fno-strict-aliasing', '-Wall',
- '-Wextra', '-Wno-unused', '-Wno-unused-parameter',
- '-g', '-fPIC', '-Wno-missing-field-initializers',
- '-fcommon']
+ extra_compile_args = ['-std=c99', '-fno-strict-aliasing', '-fcommon',
+ '-fPIC', '-Wall', '-Wextra', '-Wno-unused-parameter',
+ '-Wno-missing-field-initializers', '-g']
)
setup(
Please sign in to comment.
Something went wrong with that request. Please try again.