ObjFW  Check-in [56b1009167]

Overview
Comment:configure.ac: Fix two tests that would fail with Clang + new ABI.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: 56b1009167dceb4bbd5287998f1715b2983f8e6bd62e539563713056b88f1c0c
User & Date: js on 2011-05-15 00:32:55
Other Links: manifest | tags
Context
2011-05-15
17:00
Make it possible to specify the byte order for Unicode / UTF-16. check-in: 3dad5e5803 user: js tags: trunk
00:32
configure.ac: Fix two tests that would fail with Clang + new ABI. check-in: 56b1009167 user: js tags: trunk
2011-05-14
23:52
Add -[stringWithUTF16String:] to OFString. check-in: ec666ede07 user: js tags: trunk
Changes

Modified configure.ac from [013094e60d] to [1aa012915c].

497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
			unsigned long size;
		}
		@end

		void *_OFConstantStringClassReference;
	], [
		OFConstantString *test = @"";
		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")
	])







|







497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
			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")
	])
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
		@end

		static struct {
			struct objc_class *isa;
		} object;
	], [
		OFObject *test = (OFObject*)&object;
		test++; /* Get rid of unused variable warning */
	], [
		AC_MSG_RESULT(no)
	], [
		AC_MSG_RESULT(yes)
		OBJCFLAGS="$OBJCFLAGS -Wno-strict-aliasing"
	])
])







|







519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
		@end

		static struct {
			struct objc_class *isa;
		} object;
	], [
		OFObject *test = (OFObject*)&object;
		(void)test; /* Get rid of unused variable warning */
	], [
		AC_MSG_RESULT(no)
	], [
		AC_MSG_RESULT(yes)
		OBJCFLAGS="$OBJCFLAGS -Wno-strict-aliasing"
	])
])