Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(17)

Side by Side Diff: third_party/lzma_sdk/LzmaEnc.c

Issue 1218903002: win clang: don't disable -Wself-assign (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: . Created 5 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 /* LzmaEnc.c -- LZMA Encoder 1 /* LzmaEnc.c -- LZMA Encoder
2 2010-04-16 : Igor Pavlov : Public domain */ 2 2010-04-16 : Igor Pavlov : Public domain */
3 3
4 #include <string.h> 4 #include <string.h>
5 5
6 /* #define SHOW_STAT */ 6 /* #define SHOW_STAT */
7 /* #define SHOW_STAT2 */ 7 /* #define SHOW_STAT2 */
8 8
9 #if defined(SHOW_STAT) || defined(SHOW_STAT2) 9 #if defined(SHOW_STAT) || defined(SHOW_STAT2)
10 #include <stdio.h> 10 #include <stdio.h>
(...skipping 2059 matching lines...) Expand 10 before | Expand all | Expand 10 after
2070 2070
2071 return LzmaEnc_AllocAndInit(p, keepWindowSize, alloc, allocBig); 2071 return LzmaEnc_AllocAndInit(p, keepWindowSize, alloc, allocBig);
2072 } 2072 }
2073 2073
2074 void LzmaEnc_Finish(CLzmaEncHandle pp) 2074 void LzmaEnc_Finish(CLzmaEncHandle pp)
2075 { 2075 {
2076 #ifndef _7ZIP_ST 2076 #ifndef _7ZIP_ST
2077 CLzmaEnc *p = (CLzmaEnc *)pp; 2077 CLzmaEnc *p = (CLzmaEnc *)pp;
2078 if (p->mtMode) 2078 if (p->mtMode)
2079 MatchFinderMt_ReleaseStream(&p->matchFinderMt); 2079 MatchFinderMt_ReleaseStream(&p->matchFinderMt);
2080 #else
2081 pp = pp;
Nico 2015/06/29 23:51:02 likewise, (void)pp
2082 #endif 2080 #endif
2083 } 2081 }
2084 2082
2085 typedef struct 2083 typedef struct
2086 { 2084 {
2087 ISeqOutStream funcTable; 2085 ISeqOutStream funcTable;
2088 Byte *data; 2086 Byte *data;
2089 SizeT rem; 2087 SizeT rem;
2090 Bool overflow; 2088 Bool overflow;
2091 } CSeqOutStreamBuf; 2089 } CSeqOutStreamBuf;
(...skipping 167 matching lines...) Expand 10 before | Expand all | Expand 10 after
2259 { 2257 {
2260 res = LzmaEnc_WriteProperties(p, propsEncoded, propsSize); 2258 res = LzmaEnc_WriteProperties(p, propsEncoded, propsSize);
2261 if (res == SZ_OK) 2259 if (res == SZ_OK)
2262 res = LzmaEnc_MemEncode(p, dest, destLen, src, srcLen, 2260 res = LzmaEnc_MemEncode(p, dest, destLen, src, srcLen,
2263 writeEndMark, progress, alloc, allocBig); 2261 writeEndMark, progress, alloc, allocBig);
2264 } 2262 }
2265 2263
2266 LzmaEnc_Destroy(p, alloc, allocBig); 2264 LzmaEnc_Destroy(p, alloc, allocBig);
2267 return res; 2265 return res;
2268 } 2266 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698