From 254e3f938d73da8183b6105691d1945c1e890fa5 Mon Sep 17 00:00:00 2001 From: Joel Dice Date: Mon, 30 Jun 2014 09:53:09 -0600 Subject: [PATCH] fix unused declaration/definition warnings from GCC 4.9 --- classpath/java-util.cpp | 4 ++++ src/system/windows.cpp | 5 ----- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/classpath/java-util.cpp b/classpath/java-util.cpp index 280ccd9ea3..270109f0d8 100644 --- a/classpath/java-util.cpp +++ b/classpath/java-util.cpp @@ -14,6 +14,8 @@ namespace { +#if (!defined PLATFORM_WINDOWS) || (defined _MSC_VER) + void removeNewline(char* s) { @@ -25,6 +27,8 @@ removeNewline(char* s) } } +#endif + } // namespace extern "C" JNIEXPORT jstring JNICALL diff --git a/src/system/windows.cpp b/src/system/windows.cpp index b3b17784cd..a8e565ce55 100644 --- a/src/system/windows.cpp +++ b/src/system/windows.cpp @@ -119,11 +119,6 @@ class MutexResource { class MySystem; MySystem* system; -#if !defined(WINAPI_FAMILY) || WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) -LONG CALLBACK -handleException(LPEXCEPTION_POINTERS e); -#endif - DWORD WINAPI run(void* r) {