ObjFW  Check-in [0c87d8f53b]

Overview
Comment:Use -Wno-objc-root-class if available.

clang introduced a warning for creating a new root class, as this is
most likely in error. However, creating a new root class is exactly what
we want.

Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: 0c87d8f53b3246df3777efdee36881d6155d0b339dc7b9da1f41a6b0f45e1ca0
User & Date: js on 2012-08-05 12:17:31
Other Links: manifest | tags
Context
2012-08-05
16:52
Fix a possible race condition in initialize_class. check-in: 8f02ff02dc user: js tags: trunk
12:17
Use -Wno-objc-root-class if available. check-in: 0c87d8f53b user: js tags: trunk
10:45
runtime: Rewrite synchronized.m. check-in: f65ad67272 user: js tags: trunk
Changes

Modified configure.ac from [f5457fae3d] to [a704aa9fe3].

37
38
39
40
41
42
43


44
45
46
47
48
49
50
	OBJCFLAGS="$OBJCFLAGS -fno-constant-cfstrings"
	AC_SUBST(NO_CONST_CFSTRINGS, "-fno-constant-cfstrings")
])
AX_CHECK_COMPILER_FLAGS(-Wshorten-64-to-32,
	[OBJCFLAGS="$OBJCFLAGS -Wshorten-64-to-32"])
AX_CHECK_COMPILER_FLAGS(-Wsemicolon-before-method-body,
	[OBJCFLAGS="$OBJCFLAGS -Wsemicolon-before-method-body"])



AC_MSG_CHECKING(whether Objective C compiler supports fast enumeration)
AC_TRY_COMPILE([
	@protocol OFFastEnumeration
	- (int)countByEnumeratingWithState: (void*)state
				   objects: (id*)objects
				     count: (int)count;







>
>







37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
	OBJCFLAGS="$OBJCFLAGS -fno-constant-cfstrings"
	AC_SUBST(NO_CONST_CFSTRINGS, "-fno-constant-cfstrings")
])
AX_CHECK_COMPILER_FLAGS(-Wshorten-64-to-32,
	[OBJCFLAGS="$OBJCFLAGS -Wshorten-64-to-32"])
AX_CHECK_COMPILER_FLAGS(-Wsemicolon-before-method-body,
	[OBJCFLAGS="$OBJCFLAGS -Wsemicolon-before-method-body"])
AX_CHECK_COMPILER_FLAGS(-Wno-objc-root-class,
	[OBJCFLAGS="$OBJCFLAGS -Wno-objc-root-class"])

AC_MSG_CHECKING(whether Objective C compiler supports fast enumeration)
AC_TRY_COMPILE([
	@protocol OFFastEnumeration
	- (int)countByEnumeratingWithState: (void*)state
				   objects: (id*)objects
				     count: (int)count;