Skip to content

Commit 34cc0b2

Browse files
Merge pull request #8865 from ThomasWaldmann/cython-fixes
Cython and build fixes
2 parents 4b3ba5f + 16b7dd8 commit 34cc0b2

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@
4646
on_rtd = os.environ.get("READTHEDOCS")
4747

4848
# Extra cflags for all extensions, usually just warnings we want to enable explicitly
49-
cflags = ["-Wall", "-Wextra", "-Wpointer-arith"]
49+
cflags = ["-Wall", "-Wextra", "-Wpointer-arith", "-Wno-unreachable-code-fallthrough"]
5050

5151
compress_source = "src/borg/compress.pyx"
5252
crypto_ll_source = "src/borg/crypto/low_level.pyx"

src/borg/compress.pyx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -526,9 +526,10 @@ class Auto(CompressorBase):
526526
get_meta(cheap_meta, meta)
527527
return meta, cheap_compressed_data
528528

529-
def decompress(self, data):
529+
def decompress(self, meta, data):
530530
raise NotImplementedError
531531

532+
@classmethod
532533
def detect(cls, data):
533534
raise NotImplementedError
534535

@@ -562,7 +563,7 @@ class ObfuscateSize(CompressorBase):
562563
def _obfuscate(self, compr_size):
563564
# implementations need to return the size of obfuscation data,
564565
# that the caller shall add.
565-
raise NotImplemented
566+
raise NotImplementedError
566567

567568
def _relative_random_reciprocal_obfuscate(self, compr_size):
568569
# effect for SPEC 1:

0 commit comments

Comments
 (0)