ObjFW  Check-in [1d8122fbc9]

Overview
Comment:configure.ac: Fix -Wcast-align check.

There was a warning (resulting in an error) that no root class was
specified, causing the test to fail when it shouldn't, as warnings about
missing root classes were enabled recently.

Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: 1d8122fbc9d72c0e5051d9cf2c767053605988039ca73daec56036679bea7773
User & Date: js on 2013-12-14 03:07:06
Other Links: manifest | tags
Context
2013-12-14
11:14
exception.m: Fix wrong type in _Unwind_Exception. check-in: a655ba9020 user: js tags: trunk
03:07
configure.ac: Fix -Wcast-align check. check-in: 1d8122fbc9 user: js tags: trunk
02:22
OFException: Don't redefine HAVE_DWARF_EXCEPTIONS. check-in: 60922fdb15 user: js tags: trunk
Changes

Modified configure.ac from [a4257c1394] to [36f8180a01].

829
830
831
832
833
834
835





836
837
838
839
840
841
842
		OBJCFLAGS="$OBJCFLAGS -Wno-strict-aliasing"
	])

	old_OBJCFLAGS="$OBJCFLAGS"
	OBJCFLAGS="$OBJCFLAGS -Wcast-align"
	AC_MSG_CHECKING(whether -Wcast-align is buggy)
	AC_TRY_COMPILE([





		@interface Foo
		{
			struct objc_class *_isa;
		}
		@end

		@implementation Foo







>
>
>
>
>







829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
		OBJCFLAGS="$OBJCFLAGS -Wno-strict-aliasing"
	])

	old_OBJCFLAGS="$OBJCFLAGS"
	OBJCFLAGS="$OBJCFLAGS -Wcast-align"
	AC_MSG_CHECKING(whether -Wcast-align is buggy)
	AC_TRY_COMPILE([
		#ifdef __has_attribute
		# if __has_attribute(objc_root_class)
		__attribute__((objc_root_class))
		# endif
		#endif
		@interface Foo
		{
			struct objc_class *_isa;
		}
		@end

		@implementation Foo