Fix unused-function warning in main.c. (mono/mono#15424)
authorJohan Lorensson <lateralusx.github@gmail.com>
Wed, 26 Jun 2019 17:16:11 +0000 (19:16 +0200)
committerGitHub <noreply@github.com>
Wed, 26 Jun 2019 17:16:11 +0000 (19:16 +0200)
Commit migrated from https://github.com/mono/mono/commit/b70694828dbcb2fbab31e7f66096aa057efedee3

src/mono/mono/mini/main.c

index 9c21545..6916d64 100644 (file)
@@ -139,6 +139,7 @@ static GSList *bundle_library_paths;
 /* Directory where we unpacked dynamic libraries */
 static char *bundled_dylibrary_directory;
 
+#ifdef HAVE_ATEXIT
 static void
 delete_bundled_libraries (void)
 {
@@ -149,6 +150,7 @@ delete_bundled_libraries (void)
        }
        rmdir (bundled_dylibrary_directory);
 }
+#endif
 
 static void
 bundle_save_library_initialize (void)