ObjFW  Check-in [42c76bff23]

Overview
Comment:configure.ac: Check for buggy -Wdocumentation
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: 42c76bff2345a7b80098a6097fbe137eb10cb951aea7cf298a834a9829a6517a
User & Date: js on 2014-02-23 20:43:49
Other Links: manifest | tags
Context
2014-02-23
21:04
Increase _POSIX_C_SOURCE and _XOPEN_SOURCE check-in: 30f95ecdf5 user: js tags: trunk
20:43
configure.ac: Check for buggy -Wdocumentation check-in: 42c76bff23 user: js tags: trunk
19:08
Update PLATFORMS.md check-in: f02cf46fe7 user: js tags: trunk
Changes

Modified configure.ac from [5eda03f0e8] to [11edac0c12].

74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
])
AX_CHECK_COMPILER_FLAGS(-Wshorten-64-to-32 -Werror,
	[OBJCFLAGS="$OBJCFLAGS -Wshorten-64-to-32"])
AX_CHECK_COMPILER_FLAGS(-Wsemicolon-before-method-body -Werror,
	[OBJCFLAGS="$OBJCFLAGS -Wsemicolon-before-method-body"])
AX_CHECK_COMPILER_FLAGS([-Wno-deprecated-objc-pointer-introspection -Werror],
	[OBJCFLAGS="$OBJCFLAGS -Wno-deprecated-objc-pointer-introspection"])
AX_CHECK_COMPILER_FLAGS(-Wdocumentation -Werror,
	[OBJCFLAGS="$OBJCFLAGS -Wdocumentation"])

case "$OBJC" in
	*clang*)
		ASFLAGS="$ASFLAGS -no-integrated-as"
		;;
esac








<
<







74
75
76
77
78
79
80


81
82
83
84
85
86
87
])
AX_CHECK_COMPILER_FLAGS(-Wshorten-64-to-32 -Werror,
	[OBJCFLAGS="$OBJCFLAGS -Wshorten-64-to-32"])
AX_CHECK_COMPILER_FLAGS(-Wsemicolon-before-method-body -Werror,
	[OBJCFLAGS="$OBJCFLAGS -Wsemicolon-before-method-body"])
AX_CHECK_COMPILER_FLAGS([-Wno-deprecated-objc-pointer-introspection -Werror],
	[OBJCFLAGS="$OBJCFLAGS -Wno-deprecated-objc-pointer-introspection"])



case "$OBJC" in
	*clang*)
		ASFLAGS="$ASFLAGS -no-integrated-as"
		;;
esac

863
864
865
866
867
868
869

















870
871
872
873
874
875
876
			(void)c;
		}
		@end
	], [
	], [
		AC_MSG_RESULT(no)
	], [

















		AC_MSG_RESULT(yes)
		OBJCFLAGS="$old_OBJCFLAGS"
	])
])

AS_IF([test x"$cross_compiling" = x"yes"], [
	AC_SUBST(BIN_PREFIX, "${host_alias}-")







>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>







861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
			(void)c;
		}
		@end
	], [
	], [
		AC_MSG_RESULT(no)
	], [
		AC_MSG_RESULT(yes)
		OBJCFLAGS="$old_OBJCFLAGS"
	])

	old_OBJCFLAGS="$OBJCFLAGS"
	OBJCFLAGS="$OBJCFLAGS -Wdocumentation"
	AC_MSG_CHECKING(whether -Wdocumentation is buggy)
	AC_TRY_COMPILE([
		/*!
		 * @class Test conftest.m conftest.m
		 */
		@interface Test
		@end
	], [
	], [
		AC_MSG_RESULT(no, adding -Wdocumentation)
	], [
		AC_MSG_RESULT(yes)
		OBJCFLAGS="$old_OBJCFLAGS"
	])
])

AS_IF([test x"$cross_compiling" = x"yes"], [
	AC_SUBST(BIN_PREFIX, "${host_alias}-")