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

Unified Diff: core/src/fpdfapi/fpdf_font/fpdf_font_utility.cpp

Issue 429593005: Fix a few more warnings in chromium_code mode. (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: Created 6 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « core/src/fpdfapi/fpdf_font/fpdf_font.cpp ('k') | core/src/fpdfapi/fpdf_font/ttgsubtable.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: core/src/fpdfapi/fpdf_font/fpdf_font_utility.cpp
diff --git a/core/src/fpdfapi/fpdf_font/fpdf_font_utility.cpp b/core/src/fpdfapi/fpdf_font/fpdf_font_utility.cpp
index b10bff7ebe3294b2c5295a2ea821288c679a910c..d7c725cc2f25b3ce812076a736e512a59f7432b5 100644
--- a/core/src/fpdfapi/fpdf_font/fpdf_font_utility.cpp
+++ b/core/src/fpdfapi/fpdf_font/fpdf_font_utility.cpp
@@ -22,7 +22,7 @@ FX_LPVOID FXFC_LoadPackage(FX_LPCSTR name)
return NULL;
}
FX_BYTE buf[256];
- size_t read = FXSYS_fread(buf, 1, 20, file);
+ FXSYS_fread(buf, 1, 20, file);
if (*(FX_DWORD*)buf != 0x43465846) {
FXSYS_fclose(file);
return NULL;
@@ -45,15 +45,14 @@ FX_BOOL FXFC_LoadFile(FX_LPVOID p, FX_LPCSTR name, FX_LPBYTE& pBuffer, FX_DWORD&
FXFC_PACKAGE* pPackage = (FXFC_PACKAGE*)p;
FXSYS_fseek(pPackage->m_pFile, pPackage->m_IndexOffset, FXSYS_SEEK_SET);
FX_BYTE buf[128];
- size_t read = 0;
for (int i = 0; i < pPackage->m_nFiles; i ++) {
- read = FXSYS_fread(buf, pPackage->m_IndexSize, 1, pPackage->m_pFile);
+ FXSYS_fread(buf, pPackage->m_IndexSize, 1, pPackage->m_pFile);
if (FXSYS_stricmp((FX_LPCSTR)buf, name) == 0) {
FX_DWORD offset = *(FX_DWORD*)&buf[64];
size = *(FX_DWORD*)&buf[68];
pBuffer = FX_Alloc(FX_BYTE, size);
FXSYS_fseek(pPackage->m_pFile, offset, FXSYS_SEEK_SET);
- read = FXSYS_fread(pBuffer, size, 1, pPackage->m_pFile);
+ FXSYS_fread(pBuffer, size, 1, pPackage->m_pFile);
if (buf[72]) {
FX_DWORD orig_size;
FX_LPBYTE comp_buf = pBuffer;
« no previous file with comments | « core/src/fpdfapi/fpdf_font/fpdf_font.cpp ('k') | core/src/fpdfapi/fpdf_font/ttgsubtable.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698