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.
This commit is contained in:
Mark Adler
2017-01-02 17:25:27 -08:00
parent c7d77756d0
commit 1e3bccd496
2 changed files with 4 additions and 1 deletions

View File

@@ -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