Frameworks/base: Wall Werror in libs/androidfw

Turn on -Wall -Werror in libs/androidfw. Fix warnings. Refactor
some code.

Change-Id: I66fe54ace433c15dee5de328b149ca142f74b2dd
This commit is contained in:
Andreas Gampe
2014-10-21 23:04:54 -07:00
parent 59701b9ba5
commit 2204f0bf56
11 changed files with 412 additions and 250 deletions

View File

@@ -34,14 +34,6 @@
#include <assert.h>
#include <unistd.h>
/*
* We must open binary files using open(path, ... | O_BINARY) under Windows.
* Otherwise strange read errors will happen.
*/
#ifndef O_BINARY
# define O_BINARY 0
#endif
using namespace android;
class _ZipEntryRO {