Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Resolve unused-function warnings

  • Loading branch information...
commit 22efbc02eded9ac0fff402823baeb8fdb46749d7 1 parent 6bfc0f9
@wjk wjk authored
View
2  framework/CocoaOniguruma.xcodeproj/project.pbxproj
@@ -493,6 +493,7 @@
GCC_C_LANGUAGE_STANDARD = c99;
GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
GCC_WARN_ABOUT_RETURN_TYPE = YES;
+ GCC_WARN_UNUSED_FUNCTION = YES;
GCC_WARN_UNUSED_VARIABLE = YES;
ONLY_ACTIVE_ARCH = YES;
SDKROOT = "";
@@ -506,6 +507,7 @@
GCC_C_LANGUAGE_STANDARD = c99;
GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
GCC_WARN_ABOUT_RETURN_TYPE = YES;
+ GCC_WARN_UNUSED_FUNCTION = YES;
GCC_WARN_UNUSED_VARIABLE = YES;
INSTALL_PATH = "";
SDKROOT = "";
View
53 framework/core/oniguruma/regext.c
@@ -30,37 +30,6 @@
#include "regint.h"
static void
-conv_ext0be32(const UChar* s, const UChar* end, UChar* conv)
-{
- while (s < end) {
- *conv++ = '\0';
- *conv++ = '\0';
- *conv++ = '\0';
- *conv++ = *s++;
- }
-}
-
-static void
-conv_ext0le32(const UChar* s, const UChar* end, UChar* conv)
-{
- while (s < end) {
- *conv++ = *s++;
- *conv++ = '\0';
- *conv++ = '\0';
- *conv++ = '\0';
- }
-}
-
-static void
-conv_ext0be(const UChar* s, const UChar* end, UChar* conv)
-{
- while (s < end) {
- *conv++ = '\0';
- *conv++ = *s++;
- }
-}
-
-static void
conv_ext0le(const UChar* s, const UChar* end, UChar* conv)
{
while (s < end) {
@@ -69,28 +38,6 @@ conv_ext0le(const UChar* s, const UChar* end, UChar* conv)
}
}
-static void
-conv_swap4bytes(const UChar* s, const UChar* end, UChar* conv)
-{
- while (s < end) {
- *conv++ = s[3];
- *conv++ = s[2];
- *conv++ = s[1];
- *conv++ = s[0];
- s += 4;
- }
-}
-
-static void
-conv_swap2bytes(const UChar* s, const UChar* end, UChar* conv)
-{
- while (s < end) {
- *conv++ = s[1];
- *conv++ = s[0];
- s += 2;
- }
-}
-
static int
conv_encoding(OnigEncoding from, OnigEncoding to, const UChar* s, const UChar* end,
UChar** conv, UChar** conv_end)
Please sign in to comment.
Something went wrong with that request. Please try again.