ObjFW  Check-in [76ab337747]

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 | 0.5
Files: files | file ages | folders
SHA3-256: 76ab3377475f32a4e6a7c6cd2ed199f7e7924dbf483676912766f0f7c8321a82
User & Date: js on 2011-05-15 00:32:55
Other Links: branch diff | manifest | tags
Context
2011-06-04
13:31
Fix -[OFURL isEqual:]. check-in: d61c00e257 user: js tags: 0.5
2011-05-15
00:32
configure.ac: Fix two tests that would fail with Clang + new ABI. check-in: 76ab337747 user: js tags: 0.5
2011-05-14
23:26
Correctly check the length in of_string_check_utf8. check-in: 1c2f416cb9 user: js tags: 0.5
Changes

Modified configure.ac from [cb274217e0] to [423e60bb1e].

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"
	])
])