summaryrefslogtreecommitdiff
path: root/inffast.c
diff options
context:
space:
mode:
authorMark Adler <madler@alumni.caltech.edu>2017-01-02 17:25:27 -0800
committerMark Adler <madler@alumni.caltech.edu>2017-01-02 17:28:27 -0800
commit1e3bccd4965d34cfd34e3fed7329b1b2c4b28d1d (patch)
tree50f3dffd5c8cc06cd03af31d4b81bac5b7a6be0e /inffast.c
parentc7d77756d01210790b6d87442eba83dcc586a305 (diff)
downloadzlib-1e3bccd4965d34cfd34e3fed7329b1b2c4b28d1d.tar.gz
Add warnings when compiling with assembler code.
There have been many reports of bugs in the assembler codes intended to speed up deflate and inflate. They are third-party contributions in contrib, and so are not supported by the zlib maintainers.
Diffstat (limited to 'inffast.c')
-rw-r--r--inffast.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/inffast.c b/inffast.c
index a15876d..29eb7d8 100644
--- a/inffast.c
+++ b/inffast.c
@@ -8,7 +8,9 @@
#include "inflate.h"
#include "inffast.h"
-#ifndef ASMINF
+#ifdef ASMINF
+# pragma message("Assembler code may have bugs -- use at your own risk")
+#else
/*
Decode literal, length, and distance codes and write out the resulting