Lines 1-36
Link Here
|
1 |
--- setup.py.orig 2017-01-22 22:24:10 UTC |
|
|
2 |
+++ setup.py |
3 |
@@ -80,24 +80,24 @@ def main(): |
4 |
# We may have unused functions if we compile for older FUSE versions |
5 |
compile_args.append('-Wno-unused-function') |
6 |
|
7 |
- # Value-changing conversions should always be explicit. |
8 |
- compile_args.append('-Werror=conversion') |
9 |
- |
10 |
- # Note that (i > -1) is false if i is unsigned (-1 will be converted to |
11 |
- # a large positive value). We certainly don't want to do this by |
12 |
- # accident. |
13 |
- compile_args.append('-Werror=sign-compare') |
14 |
- |
15 |
# Enable all fatal warnings only when compiling from Mercurial tip. |
16 |
# (otherwise we break forward compatibility because compilation with newer |
17 |
# compiler may fail if additional warnings are added) |
18 |
- if DEVELOPER_MODE: |
19 |
+ if 0: |
20 |
compile_args.append('-Werror') |
21 |
compile_args.append('-Wfatal-errors') |
22 |
|
23 |
# Unreachable code is expected because we need to support multiple |
24 |
# platforms and architectures. |
25 |
compile_args.append('-Wno-error=unreachable-code') |
26 |
+ |
27 |
+ # Value-changing conversions should always be explicit. |
28 |
+ compile_args.append('-Werror=conversion') |
29 |
+ |
30 |
+ # Note that (i > -1) is false if i is unsigned (-1 will be converted to |
31 |
+ # a large positive value). We certainly don't want to do this by |
32 |
+ # accident. |
33 |
+ compile_args.append('-Werror=sign-compare') |
34 |
|
35 |
# http://bugs.python.org/issue7576 |
36 |
if sys.version_info[0] == 3 and sys.version_info[1] < 2: |