Index: configure.ac ================================================================== --- configure.ac +++ configure.ac @@ -1103,32 +1103,10 @@ ]) AS_IF([test x"$GOBJC" = x"yes"], [ OBJCFLAGS="$OBJCFLAGS -Wwrite-strings -Wpointer-arith -Werror" - AC_MSG_CHECKING(whether we have GCC bug objc/27438) - AC_TRY_COMPILE([ - @interface OFConstantString - { - struct objc_class *isa; - const char *string; - unsigned long size; - } - @end - - void *_OFConstantStringClassReference; - ], [ - OFConstantString *test = @""; - (void)test; /* Get rid of unused variable warning */ - ], [ - AC_MSG_RESULT(no) - ], [ - AC_MSG_RESULT([yes, adding -Wno-unused-variable]) - OBJCFLAGS="$OBJCFLAGS -Wno-unused-variable" - AC_SUBST(NO_WARN_UNUSED, "-Wno-unused-variable") - ]) - AC_MSG_CHECKING(whether we need -Wno-strict-aliasing due to GCC bugs) AC_TRY_COMPILE([ @interface Foo { struct objc_class *isa;