mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-11 11:45:21 +00:00
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:
parent
e1c81b9066
commit
c15af4f1b4
@ -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");
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user