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

Unified Diff: third_party/lzma_sdk/7zAlloc.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, 6 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 side-by-side diff with in-line comments
Download patch
Index: third_party/lzma_sdk/7zAlloc.c
diff --git a/third_party/lzma_sdk/7zAlloc.c b/third_party/lzma_sdk/7zAlloc.c
index 964b28db38ec8f18ca7209e121258399a7ba56ed..d8cba7e5aec0646705019453c04e5a131eeff675 100644
--- a/third_party/lzma_sdk/7zAlloc.c
+++ b/third_party/lzma_sdk/7zAlloc.c
@@ -20,7 +20,6 @@ int g_allocCountTemp = 0;
void *SzAlloc(void *p, size_t size)
{
- p = p;
Nico 2015/06/29 23:51:02 I bet these are here to fix -Wunused-parameter war
scottmg 2015/06/30 00:32:55 I don't think you can remove the argument names in
if (size == 0)
return 0;
#ifdef _SZ_ALLOC_DEBUG
@@ -32,7 +31,6 @@ void *SzAlloc(void *p, size_t size)
void SzFree(void *p, void *address)
{
- p = p;
#ifdef _SZ_ALLOC_DEBUG
if (address != 0)
{
@@ -45,7 +43,6 @@ void SzFree(void *p, void *address)
void *SzAllocTemp(void *p, size_t size)
{
- p = p;
if (size == 0)
return 0;
#ifdef _SZ_ALLOC_DEBUG
@@ -60,7 +57,6 @@ void *SzAllocTemp(void *p, size_t size)
void SzFreeTemp(void *p, void *address)
{
- p = p;
#ifdef _SZ_ALLOC_DEBUG
if (address != 0)
{

Powered by Google App Engine
This is Rietveld 408576698