XEEN: Fix build warning under clang 10.0.1

---
    C++      devtools/create_xeen/create_xeen.o
devtools/create_xeen/create_xeen.cpp:44:14: warning: declaration requires a global destructor [-Wglobal-constructors]
Common::File outputFile;
---
This commit is contained in:
Jonathan Phénix 2020-12-05 13:09:58 -05:00 committed by Paul Gilbert
parent e1c81b9066
commit c15af4f1b4

View File

@ -41,8 +41,6 @@
#define VERSION_NUMBER 4
Common::File outputFile;
void NORETURN_PRE error(const char *s, ...) {
printf("%s\n", s);
exit(1);
@ -60,6 +58,7 @@ int main(int argc, char *argv[]) {
return 1;
}
Common::File outputFile;
if (!outputFile.open("xeen.ccs", Common::kFileWriteMode)) {
error("Could not open input file");
}