source: trunk/target/linux/generic/patches-2.6.37/010-debloat_lzma.patch @ 25767

Last change on this file since 25767 was 25767, checked in by nbd, 6 years ago

kernel: de-bloat the lzma library used by jffs2

File size: 16.5 KB
  • include/linux/lzma/LzmaDec.h

    a b typedef struct _CLzmaProps 
    3131  UInt32 dicSize; 
    3232} CLzmaProps; 
    3333 
    34 /* LzmaProps_Decode - decodes properties 
    35 Returns: 
    36   SZ_OK 
    37   SZ_ERROR_UNSUPPORTED - Unsupported properties 
    38 */ 
    39  
    40 SRes LzmaProps_Decode(CLzmaProps *p, const Byte *data, unsigned size); 
    41  
    4234 
    4335/* ---------- LZMA Decoder state ---------- */ 
    4436 
    typedef struct 
    7062 
    7163#define LzmaDec_Construct(p) { (p)->dic = 0; (p)->probs = 0; } 
    7264 
    73 void LzmaDec_Init(CLzmaDec *p); 
    74  
    7565/* There are two types of LZMA streams: 
    7666     0) Stream with end mark. That end mark adds about 6 bytes to compressed size. 
    7767     1) Stream without end mark. You must know exact uncompressed size to decompress such stream. */ 
    typedef enum 
    10898 
    10999/* ELzmaStatus is used only as output value for function call */ 
    110100 
    111  
    112 /* ---------- Interfaces ---------- */ 
    113  
    114 /* There are 3 levels of interfaces: 
    115      1) Dictionary Interface 
    116      2) Buffer Interface 
    117      3) One Call Interface 
    118    You can select any of these interfaces, but don't mix functions from different 
    119    groups for same object. */ 
    120  
    121  
    122 /* There are two variants to allocate state for Dictionary Interface: 
    123      1) LzmaDec_Allocate / LzmaDec_Free 
    124      2) LzmaDec_AllocateProbs / LzmaDec_FreeProbs 
    125    You can use variant 2, if you set dictionary buffer manually. 
    126    For Buffer Interface you must always use variant 1. 
    127  
    128 LzmaDec_Allocate* can return: 
    129   SZ_OK 
    130   SZ_ERROR_MEM         - Memory allocation error 
    131   SZ_ERROR_UNSUPPORTED - Unsupported properties 
    132 */ 
    133     
    134 SRes LzmaDec_AllocateProbs(CLzmaDec *p, const Byte *props, unsigned propsSize, ISzAlloc *alloc); 
    135 void LzmaDec_FreeProbs(CLzmaDec *p, ISzAlloc *alloc); 
    136  
    137 SRes LzmaDec_Allocate(CLzmaDec *state, const Byte *prop, unsigned propsSize, ISzAlloc *alloc); 
    138 void LzmaDec_Free(CLzmaDec *state, ISzAlloc *alloc); 
    139  
    140 /* ---------- Dictionary Interface ---------- */ 
    141  
    142 /* You can use it, if you want to eliminate the overhead for data copying from 
    143    dictionary to some other external buffer. 
    144    You must work with CLzmaDec variables directly in this interface. 
    145  
    146    STEPS: 
    147      LzmaDec_Constr() 
    148      LzmaDec_Allocate() 
    149      for (each new stream) 
    150      { 
    151        LzmaDec_Init() 
    152        while (it needs more decompression) 
    153        { 
    154          LzmaDec_DecodeToDic() 
    155          use data from CLzmaDec::dic and update CLzmaDec::dicPos 
    156        } 
    157      } 
    158      LzmaDec_Free() 
    159 */ 
    160  
    161 /* LzmaDec_DecodeToDic 
    162     
    163    The decoding to internal dictionary buffer (CLzmaDec::dic). 
    164    You must manually update CLzmaDec::dicPos, if it reaches CLzmaDec::dicBufSize !!! 
    165  
    166 finishMode: 
    167   It has meaning only if the decoding reaches output limit (dicLimit). 
    168   LZMA_FINISH_ANY - Decode just dicLimit bytes. 
    169   LZMA_FINISH_END - Stream must be finished after dicLimit. 
    170  
    171 Returns: 
    172   SZ_OK 
    173     status: 
    174       LZMA_STATUS_FINISHED_WITH_MARK 
    175       LZMA_STATUS_NOT_FINISHED 
    176       LZMA_STATUS_NEEDS_MORE_INPUT 
    177       LZMA_STATUS_MAYBE_FINISHED_WITHOUT_MARK 
    178   SZ_ERROR_DATA - Data error 
    179 */ 
    180  
    181 SRes LzmaDec_DecodeToDic(CLzmaDec *p, SizeT dicLimit, 
    182     const Byte *src, SizeT *srcLen, ELzmaFinishMode finishMode, ELzmaStatus *status); 
    183  
    184  
    185 /* ---------- Buffer Interface ---------- */ 
    186  
    187 /* It's zlib-like interface. 
    188    See LzmaDec_DecodeToDic description for information about STEPS and return results, 
    189    but you must use LzmaDec_DecodeToBuf instead of LzmaDec_DecodeToDic and you don't need 
    190    to work with CLzmaDec variables manually. 
    191  
    192 finishMode: 
    193   It has meaning only if the decoding reaches output limit (*destLen). 
    194   LZMA_FINISH_ANY - Decode just destLen bytes. 
    195   LZMA_FINISH_END - Stream must be finished after (*destLen). 
    196 */ 
    197  
    198 SRes LzmaDec_DecodeToBuf(CLzmaDec *p, Byte *dest, SizeT *destLen, 
    199     const Byte *src, SizeT *srcLen, ELzmaFinishMode finishMode, ELzmaStatus *status); 
    200  
    201  
    202101/* ---------- One Call Interface ---------- */ 
    203102 
    204103/* LzmaDecode 
  • lib/lzma/LzmaDec.c

    a b static void LzmaDec_InitRc(CLzmaDec *p,  
    682682  p->needFlush = 0; 
    683683} 
    684684 
    685 void LzmaDec_InitDicAndState(CLzmaDec *p, Bool initDic, Bool initState) 
     685static void LzmaDec_InitDicAndState(CLzmaDec *p, Bool initDic, Bool initState) 
    686686{ 
    687687  p->needFlush = 1; 
    688688  p->remainLen = 0; 
    void LzmaDec_InitDicAndState(CLzmaDec *p 
    698698    p->needInitState = 1; 
    699699} 
    700700 
    701 void LzmaDec_Init(CLzmaDec *p) 
     701static void LzmaDec_Init(CLzmaDec *p) 
    702702{ 
    703703  p->dicPos = 0; 
    704704  LzmaDec_InitDicAndState(p, True, True); 
    static void LzmaDec_InitStateReal(CLzmaD 
    716716  p->needInitState = 0; 
    717717} 
    718718 
    719 SRes LzmaDec_DecodeToDic(CLzmaDec *p, SizeT dicLimit, const Byte *src, SizeT *srcLen, 
     719static SRes LzmaDec_DecodeToDic(CLzmaDec *p, SizeT dicLimit, const Byte *src, SizeT *srcLen, 
    720720    ELzmaFinishMode finishMode, ELzmaStatus *status) 
    721721{ 
    722722  SizeT inSize = *srcLen; 
    SRes LzmaDec_DecodeToDic(CLzmaDec *p, Si 
    837837  return (p->code == 0) ? SZ_OK : SZ_ERROR_DATA; 
    838838} 
    839839 
    840 SRes LzmaDec_DecodeToBuf(CLzmaDec *p, Byte *dest, SizeT *destLen, const Byte *src, SizeT *srcLen, ELzmaFinishMode finishMode, ELzmaStatus *status) 
     840static __maybe_unused SRes LzmaDec_DecodeToBuf(CLzmaDec *p, Byte *dest, SizeT *destLen, const Byte *src, SizeT *srcLen, ELzmaFinishMode finishMode, ELzmaStatus *status) 
    841841{ 
    842842  SizeT outSize = *destLen; 
    843843  SizeT inSize = *srcLen; 
    SRes LzmaDec_DecodeToBuf(CLzmaDec *p, By 
    877877  } 
    878878} 
    879879 
    880 void LzmaDec_FreeProbs(CLzmaDec *p, ISzAlloc *alloc) 
     880static void LzmaDec_FreeProbs(CLzmaDec *p, ISzAlloc *alloc) 
    881881{ 
    882882  alloc->Free(alloc, p->probs); 
    883883  p->probs = 0; 
    static void LzmaDec_FreeDict(CLzmaDec *p 
    889889  p->dic = 0; 
    890890} 
    891891 
    892 void LzmaDec_Free(CLzmaDec *p, ISzAlloc *alloc) 
     892static void __maybe_unused LzmaDec_Free(CLzmaDec *p, ISzAlloc *alloc) 
    893893{ 
    894894  LzmaDec_FreeProbs(p, alloc); 
    895895  LzmaDec_FreeDict(p, alloc); 
    896896} 
    897897 
    898 SRes LzmaProps_Decode(CLzmaProps *p, const Byte *data, unsigned size) 
     898static SRes LzmaProps_Decode(CLzmaProps *p, const Byte *data, unsigned size) 
    899899{ 
    900900  UInt32 dicSize; 
    901901  Byte d; 
    static SRes LzmaDec_AllocateProbs2(CLzma 
    935935  return SZ_OK; 
    936936} 
    937937 
    938 SRes LzmaDec_AllocateProbs(CLzmaDec *p, const Byte *props, unsigned propsSize, ISzAlloc *alloc) 
     938static SRes __maybe_unused LzmaDec_AllocateProbs(CLzmaDec *p, const Byte *props, unsigned propsSize, ISzAlloc *alloc) 
    939939{ 
    940940  CLzmaProps propNew; 
    941941  RINOK(LzmaProps_Decode(&propNew, props, propsSize)); 
    SRes LzmaDec_AllocateProbs(CLzmaDec *p,  
    944944  return SZ_OK; 
    945945} 
    946946 
    947 SRes LzmaDec_Allocate(CLzmaDec *p, const Byte *props, unsigned propsSize, ISzAlloc *alloc) 
     947static SRes __maybe_unused LzmaDec_Allocate(CLzmaDec *p, const Byte *props, unsigned propsSize, ISzAlloc *alloc) 
    948948{ 
    949949  CLzmaProps propNew; 
    950950  SizeT dicBufSize; 
  • include/linux/lzma/LzmaEnc.h

    a b typedef struct _CLzmaEncProps 
    3131} CLzmaEncProps; 
    3232 
    3333void LzmaEncProps_Init(CLzmaEncProps *p); 
    34 void LzmaEncProps_Normalize(CLzmaEncProps *p); 
    35 UInt32 LzmaEncProps_GetDictSize(const CLzmaEncProps *props2); 
    36  
    3734 
    3835/* ---------- CLzmaEncHandle Interface ---------- */ 
    3936 
    CLzmaEncHandle LzmaEnc_Create(ISzAlloc * 
    5350void LzmaEnc_Destroy(CLzmaEncHandle p, ISzAlloc *alloc, ISzAlloc *allocBig); 
    5451SRes LzmaEnc_SetProps(CLzmaEncHandle p, const CLzmaEncProps *props); 
    5552SRes LzmaEnc_WriteProperties(CLzmaEncHandle p, Byte *properties, SizeT *size); 
    56 SRes LzmaEnc_Encode(CLzmaEncHandle p, ISeqOutStream *outStream, ISeqInStream *inStream, 
    57     ICompressProgress *progress, ISzAlloc *alloc, ISzAlloc *allocBig); 
    5853SRes LzmaEnc_MemEncode(CLzmaEncHandle p, Byte *dest, SizeT *destLen, const Byte *src, SizeT srcLen, 
    5954    int writeEndMark, ICompressProgress *progress, ISzAlloc *alloc, ISzAlloc *allocBig); 
    6055 
    61 /* ---------- One Call Interface ---------- */ 
    62  
    63 /* LzmaEncode 
    64 Return code: 
    65   SZ_OK               - OK 
    66   SZ_ERROR_MEM        - Memory allocation error 
    67   SZ_ERROR_PARAM      - Incorrect paramater 
    68   SZ_ERROR_OUTPUT_EOF - output buffer overflow 
    69   SZ_ERROR_THREAD     - errors in multithreading functions (only for Mt version) 
    70 */ 
    71  
    72 SRes LzmaEncode(Byte *dest, SizeT *destLen, const Byte *src, SizeT srcLen, 
    73     const CLzmaEncProps *props, Byte *propsEncoded, SizeT *propsSize, int writeEndMark, 
    74     ICompressProgress *progress, ISzAlloc *alloc, ISzAlloc *allocBig); 
    75  
    7656#ifdef __cplusplus 
    7757} 
    7858#endif 
  • lib/lzma/LzmaEnc.c

    a b void LzmaEncProps_Init(CLzmaEncProps *p) 
    5353  p->writeEndMark = 0; 
    5454} 
    5555 
    56 void LzmaEncProps_Normalize(CLzmaEncProps *p) 
     56static void LzmaEncProps_Normalize(CLzmaEncProps *p) 
    5757{ 
    5858  int level = p->level; 
    5959  if (level < 0) level = 5; 
    void LzmaEncProps_Normalize(CLzmaEncProp 
    7676      #endif 
    7777} 
    7878 
    79 UInt32 LzmaEncProps_GetDictSize(const CLzmaEncProps *props2) 
     79static UInt32 __maybe_unused LzmaEncProps_GetDictSize(const CLzmaEncProps *props2) 
    8080{ 
    8181  CLzmaEncProps props = *props2; 
    8282  LzmaEncProps_Normalize(&props); 
    UInt32 LzmaEncProps_GetDictSize(const CL 
    9393 
    9494#define BSR2_RET(pos, res) { unsigned long i; _BitScanReverse(&i, (pos)); res = (i + i) + ((pos >> (i - 1)) & 1); } 
    9595 
    96 UInt32 GetPosSlot1(UInt32 pos) 
     96static UInt32 GetPosSlot1(UInt32 pos) 
    9797{ 
    9898  UInt32 res; 
    9999  BSR2_RET(pos, res); 
    UInt32 GetPosSlot1(UInt32 pos) 
    107107#define kNumLogBits (9 + (int)sizeof(size_t) / 2) 
    108108#define kDicLogSizeMaxCompress ((kNumLogBits - 1) * 2 + 7) 
    109109 
    110 void LzmaEnc_FastPosInit(Byte *g_FastPos) 
     110static void LzmaEnc_FastPosInit(Byte *g_FastPos) 
    111111{ 
    112112  int c = 2, slotFast; 
    113113  g_FastPos[0] = 0; 
    typedef struct 
    339339  CSaveState saveState; 
    340340} CLzmaEnc; 
    341341 
    342 void LzmaEnc_SaveState(CLzmaEncHandle pp) 
     342static void __maybe_unused LzmaEnc_SaveState(CLzmaEncHandle pp) 
    343343{ 
    344344  CLzmaEnc *p = (CLzmaEnc *)pp; 
    345345  CSaveState *dest = &p->saveState; 
    void LzmaEnc_SaveState(CLzmaEncHandle pp 
    365365  memcpy(dest->litProbs, p->litProbs, (0x300 << p->lclp) * sizeof(CLzmaProb)); 
    366366} 
    367367 
    368 void LzmaEnc_RestoreState(CLzmaEncHandle pp) 
     368static void __maybe_unused LzmaEnc_RestoreState(CLzmaEncHandle pp) 
    369369{ 
    370370  CLzmaEnc *dest = (CLzmaEnc *)pp; 
    371371  const CSaveState *p = &dest->saveState; 
    static void LitEnc_EncodeMatched(CRangeE 
    600600  while (symbol < 0x10000); 
    601601} 
    602602 
    603 void LzmaEnc_InitPriceTables(UInt32 *ProbPrices) 
     603static void LzmaEnc_InitPriceTables(UInt32 *ProbPrices) 
    604604{ 
    605605  UInt32 i; 
    606606  for (i = (1 << kNumMoveReducingBits) / 2; i < kBitModelTotal; i += (1 << kNumMoveReducingBits)) 
    static void FillDistancesPrices(CLzmaEnc 
    16761676  p->matchPriceCount = 0; 
    16771677} 
    16781678 
    1679 void LzmaEnc_Construct(CLzmaEnc *p) 
     1679static void LzmaEnc_Construct(CLzmaEnc *p) 
    16801680{ 
    16811681  RangeEnc_Construct(&p->rc); 
    16821682  MatchFinder_Construct(&p->matchFinderBase); 
    CLzmaEncHandle LzmaEnc_Create(ISzAlloc * 
    17091709  return p; 
    17101710} 
    17111711 
    1712 void LzmaEnc_FreeLits(CLzmaEnc *p, ISzAlloc *alloc) 
     1712static void LzmaEnc_FreeLits(CLzmaEnc *p, ISzAlloc *alloc) 
    17131713{ 
    17141714  alloc->Free(alloc, p->litProbs); 
    17151715  alloc->Free(alloc, p->saveState.litProbs); 
    SRes LzmaEnc_MemPrepare(CLzmaEncHandle p 
    20742074  return LzmaEnc_AllocAndInit(p, keepWindowSize, alloc, allocBig); 
    20752075} 
    20762076 
    2077 void LzmaEnc_Finish(CLzmaEncHandle pp) 
     2077static void LzmaEnc_Finish(CLzmaEncHandle pp) 
    20782078{ 
    20792079  #ifndef _7ZIP_ST 
    20802080  CLzmaEnc *p = (CLzmaEnc *)pp; 
    static size_t MyWrite(void *pp, const vo 
    21082108} 
    21092109 
    21102110 
    2111 UInt32 LzmaEnc_GetNumAvailableBytes(CLzmaEncHandle pp) 
     2111static UInt32 __maybe_unused LzmaEnc_GetNumAvailableBytes(CLzmaEncHandle pp) 
    21122112{ 
    21132113  const CLzmaEnc *p = (CLzmaEnc *)pp; 
    21142114  return p->matchFinder.GetNumAvailableBytes(p->matchFinderObj); 
    const Byte *LzmaEnc_GetCurBuf(CLzmaEncHa 
    21202120  return p->matchFinder.GetPointerToCurrentPos(p->matchFinderObj) - p->additionalOffset; 
    21212121} 
    21222122 
    2123 SRes LzmaEnc_CodeOneMemBlock(CLzmaEncHandle pp, Bool reInit, 
     2123static SRes __maybe_unused LzmaEnc_CodeOneMemBlock(CLzmaEncHandle pp, Bool reInit, 
    21242124    Byte *dest, size_t *destLen, UInt32 desiredPackSize, UInt32 *unpackSize) 
    21252125{ 
    21262126  CLzmaEnc *p = (CLzmaEnc *)pp; 
    SRes LzmaEnc_MemEncode(CLzmaEncHandle pp 
    22482248  return res; 
    22492249} 
    22502250 
    2251 SRes LzmaEncode(Byte *dest, SizeT *destLen, const Byte *src, SizeT srcLen, 
     2251static __maybe_unused SRes LzmaEncode(Byte *dest, SizeT *destLen, const Byte *src, SizeT srcLen, 
    22522252    const CLzmaEncProps *props, Byte *propsEncoded, SizeT *propsSize, int writeEndMark, 
    22532253    ICompressProgress *progress, ISzAlloc *alloc, ISzAlloc *allocBig) 
    22542254{ 
  • include/linux/lzma/LzFind.h

    a b typedef struct _CMatchFinder 
    5555 
    5656#define Inline_MatchFinder_GetNumAvailableBytes(p) ((p)->streamPos - (p)->pos) 
    5757 
    58 int MatchFinder_NeedMove(CMatchFinder *p); 
    59 Byte *MatchFinder_GetPointerToCurrentPos(CMatchFinder *p); 
    60 void MatchFinder_MoveBlock(CMatchFinder *p); 
    61 void MatchFinder_ReadIfRequired(CMatchFinder *p); 
    62  
    6358void MatchFinder_Construct(CMatchFinder *p); 
    6459 
    6560/* Conditions: 
    int MatchFinder_Create(CMatchFinder *p,  
    7065    UInt32 keepAddBufferBefore, UInt32 matchMaxLen, UInt32 keepAddBufferAfter, 
    7166    ISzAlloc *alloc); 
    7267void MatchFinder_Free(CMatchFinder *p, ISzAlloc *alloc); 
    73 void MatchFinder_Normalize3(UInt32 subValue, CLzRef *items, UInt32 numItems); 
    74 void MatchFinder_ReduceOffsets(CMatchFinder *p, UInt32 subValue); 
    75  
    76 UInt32 * GetMatchesSpec1(UInt32 lenLimit, UInt32 curMatch, UInt32 pos, const Byte *buffer, CLzRef *son, 
    77     UInt32 _cyclicBufferPos, UInt32 _cyclicBufferSize, UInt32 _cutValue, 
    78     UInt32 *distances, UInt32 maxLen); 
    7968 
    8069/* 
    8170Conditions: 
    typedef struct _IMatchFinder 
    10291 
    10392void MatchFinder_CreateVTable(CMatchFinder *p, IMatchFinder *vTable); 
    10493 
    105 void MatchFinder_Init(CMatchFinder *p); 
    106 UInt32 Bt3Zip_MatchFinder_GetMatches(CMatchFinder *p, UInt32 *distances); 
    107 UInt32 Hc3Zip_MatchFinder_GetMatches(CMatchFinder *p, UInt32 *distances); 
    108 void Bt3Zip_MatchFinder_Skip(CMatchFinder *p, UInt32 num); 
    109 void Hc3Zip_MatchFinder_Skip(CMatchFinder *p, UInt32 num); 
    110  
    11194#ifdef __cplusplus 
    11295} 
    11396#endif 
  • lib/lzma/LzFind.c

    a b static int LzInWindow_Create(CMatchFinde 
    4242  return (p->bufferBase != 0); 
    4343} 
    4444 
    45 Byte *MatchFinder_GetPointerToCurrentPos(CMatchFinder *p) { return p->buffer; } 
    46 Byte MatchFinder_GetIndexByte(CMatchFinder *p, Int32 index) { return p->buffer[index]; } 
     45static Byte *MatchFinder_GetPointerToCurrentPos(CMatchFinder *p) { return p->buffer; } 
     46static Byte MatchFinder_GetIndexByte(CMatchFinder *p, Int32 index) { return p->buffer[index]; } 
    4747 
    48 UInt32 MatchFinder_GetNumAvailableBytes(CMatchFinder *p) { return p->streamPos - p->pos; } 
     48static UInt32 MatchFinder_GetNumAvailableBytes(CMatchFinder *p) { return p->streamPos - p->pos; } 
    4949 
    50 void MatchFinder_ReduceOffsets(CMatchFinder *p, UInt32 subValue) 
     50static void MatchFinder_ReduceOffsets(CMatchFinder *p, UInt32 subValue) 
    5151{ 
    5252  p->posLimit -= subValue; 
    5353  p->pos -= subValue; 
    static void MatchFinder_SetLimits(CMatch 
    268268  p->posLimit = p->pos + limit; 
    269269} 
    270270 
    271 void MatchFinder_Init(CMatchFinder *p) 
     271static void MatchFinder_Init(CMatchFinder *p) 
    272272{ 
    273273  UInt32 i; 
    274274  for (i = 0; i < p->hashSizeSum; i++) 
    static UInt32 MatchFinder_GetSubValue(CM 
    287287  return (p->pos - p->historySize - 1) & kNormalizeMask; 
    288288} 
    289289 
    290 void MatchFinder_Normalize3(UInt32 subValue, CLzRef *items, UInt32 numItems) 
     290static void MatchFinder_Normalize3(UInt32 subValue, CLzRef *items, UInt32 numItems) 
    291291{ 
    292292  UInt32 i; 
    293293  for (i = 0; i < numItems; i++) 
    static UInt32 * Hc_GetMatchesSpec(UInt32 
    350350  } 
    351351} 
    352352 
    353 UInt32 * GetMatchesSpec1(UInt32 lenLimit, UInt32 curMatch, UInt32 pos, const Byte *cur, CLzRef *son, 
     353static UInt32 * GetMatchesSpec1(UInt32 lenLimit, UInt32 curMatch, UInt32 pos, const Byte *cur, CLzRef *son, 
    354354    UInt32 _cyclicBufferPos, UInt32 _cyclicBufferSize, UInt32 cutValue, 
    355355    UInt32 *distances, UInt32 maxLen) 
    356356{ 
    static UInt32 Bt2_MatchFinder_GetMatches 
    492492  GET_MATCHES_FOOTER(offset, 1) 
    493493} 
    494494 
    495 UInt32 Bt3Zip_MatchFinder_GetMatches(CMatchFinder *p, UInt32 *distances) 
     495static __maybe_unused UInt32 Bt3Zip_MatchFinder_GetMatches(CMatchFinder *p, UInt32 *distances) 
    496496{ 
    497497  UInt32 offset; 
    498498  GET_MATCHES_HEADER(3) 
    static UInt32 Hc4_MatchFinder_GetMatches 
    632632  MOVE_POS_RET 
    633633} 
    634634 
    635 UInt32 Hc3Zip_MatchFinder_GetMatches(CMatchFinder *p, UInt32 *distances) 
     635static __maybe_unused UInt32 Hc3Zip_MatchFinder_GetMatches(CMatchFinder *p, UInt32 *distances) 
    636636{ 
    637637  UInt32 offset; 
    638638  GET_MATCHES_HEADER(3) 
    static void Bt2_MatchFinder_Skip(CMatchF 
    657657  while (--num != 0); 
    658658} 
    659659 
    660 void Bt3Zip_MatchFinder_Skip(CMatchFinder *p, UInt32 num) 
     660static __maybe_unused void Bt3Zip_MatchFinder_Skip(CMatchFinder *p, UInt32 num) 
    661661{ 
    662662  do 
    663663  { 
    static void Hc4_MatchFinder_Skip(CMatchF 
    718718  while (--num != 0); 
    719719} 
    720720 
    721 void Hc3Zip_MatchFinder_Skip(CMatchFinder *p, UInt32 num) 
     721static __maybe_unused void Hc3Zip_MatchFinder_Skip(CMatchFinder *p, UInt32 num) 
    722722{ 
    723723  do 
    724724  { 
Note: See TracBrowser for help on using the repository browser.