Skip to content

Commit

Permalink
ignore some compiler warnings for cython
Browse files Browse the repository at this point in the history
  • Loading branch information
maxbachmann committed Mar 20, 2021
1 parent 90cc67b commit 0d84a8b
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 12 deletions.
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.3.1
1.3.2
18 changes: 10 additions & 8 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,20 +5,22 @@
class BuildExt(build_ext):
"""A custom build extension for adding compiler-specific options."""
c_opts = {
'msvc': ['/EHsc', '/O2', '/std:c++11', '/W4', '/WX',
'msvc': ['/EHsc', '/O2', '/std:c++11', '/W4',
# disable some warnings from the Cython code
'/wd4127', # conditional expression is constant
'/wd4100', # '__pyx_self': unreferenced formal parameter
'/wd4505', # unreferenced local function has been removed
'/wd4125', # decimal digit terminates octal escape sequence
'/wd4310', # cast truncates constant value
#'/wd4127', # conditional expression is constant
#'/wd4100', # '__pyx_self': unreferenced formal parameter
#'/wd4505', # unreferenced local function has been removed
#'/wd4125', # decimal digit terminates octal escape sequence
#'/wd4310', # cast truncates constant value
],
'unix': ['-O3', '-std=c++11',
'-Wextra', '-Wall', '-Werror', '-Wconversion', '-g0',
'-Wextra', '-Wall', '-Wconversion', '-g0',
'-Wno-deprecated-declarations',
# the xcode implementation used in the CI has a bug, which causes
# this to be thrown even when it is ignored using brackets around the statement
'-Wno-unreachable-code'
'-Wno-unreachable-code',
# this caused issues on the conda forge build
'-Wno-unused-command-line-argument'
],
}
l_opts = {
Expand Down
3 changes: 1 addition & 2 deletions src/cpp_process.cpp

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/rapidfuzz/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@
"""
__author__ = "Max Bachmann"
__license__ = "MIT"
__version__ = "1.3.1"
__version__ = "1.3.2"

from rapidfuzz import process, fuzz, utils, levenshtein, string_metric

0 comments on commit 0d84a8b

Please sign in to comment.