From 0069ad709cb2a8e191066da5010b2d1e182eb79f Mon Sep 17 00:00:00 2001 From: Kenny Root Date: Mon, 25 Jul 2011 12:55:41 -0700 Subject: [PATCH] Change ZipFile flags anonymous enum The arguments that ZipFile takes were apparently meant to be a typed enum, but the name of the type was taken out because it creates invalid conversion warnings in C++ since this is an invalid use of enum. Just change the typedef enum to an anonymous enum so we get rid of the compiler warnings. It will be implicitly converted to int instead. Change-Id: Ie72c4c235c8f9ee8fd1b795e1010b77c55e983de --- ZipFile.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ZipFile.h b/ZipFile.h index dbbd072..7877550 100644 --- a/ZipFile.h +++ b/ZipFile.h @@ -57,7 +57,7 @@ public: /* * Open a new or existing archive. */ - typedef enum { + enum { kOpenReadOnly = 0x01, kOpenReadWrite = 0x02, kOpenCreate = 0x04, // create if it doesn't exist -- 2.50.0