ObjFW  Check-in [93de28d8e8]

Overview
Comment:Add -Wno-unused-variable to objfw-config if we got gcc bug objc/27438.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: 93de28d8e84fdaff16e5b7474c77a2c074c0d4ee38d787c2b5d4cb00dedfd3e1
User & Date: js on 2009-11-03 15:17:27
Other Links: manifest | tags
Context
2009-11-03
16:48
Rename class to class_ for the sake of Objective C++ compatibility. check-in: 8a35bb55a8 user: js tags: trunk
15:17
Add -Wno-unused-variable to objfw-config if we got gcc bug objc/27438. check-in: 93de28d8e8 user: js tags: trunk
14:15
Update .xcodeproj. check-in: 52bda71915 user: js tags: trunk
Changes

Modified configure.ac from [e46693a40b] to [3a016b02b3].

161
162
163
164
165
166
167
168


169
170
171
172
173
174
175
161
162
163
164
165
166
167

168
169
170
171
172
173
174
175
176







-
+
+








		void *_OFConstStringClassReference;
		], [
		OFConstString *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"])
		OBJCFLAGS="$OBJCFLAGS -Wno-unused-variable"
		AC_SUBST(NO_WARN_UNUSED, "-Wno-unused-variable")])

	AC_MSG_CHECKING(whether we need -Wno-strict-aliasing due to gcc bugs)
	AC_TRY_COMPILE([
		#import <objc/objc.h>

		@interface OFObject
		{

Modified objfw-config.in from [0a106bf29c] to [e7c2d2a924].

1
2
3
4
5
6
7
8
9
10

11
12
13
14
15
16
17
1
2
3
4
5
6
7
8
9

10
11
12
13
14
15
16
17









-
+







#!/bin/sh
prefix="@prefix@"
exec_prefix="@exec_prefix@"
libdir="@libdir@"
CFLAGS=""
CPPFLAGS="-I@includedir@ -DOF_CONFIGURED @ENDIANESS_DEF@ @ASPRINTF_DEF@"
CPPFLAGS="$CPPFLAGS @OFPLUGINS_DEF@"
CXXFLAGS=""
OBJCFLAGS="-fobjc-exceptions -fconstant-string-class=OFConstString"
OBJCFLAGS="$OBJCFLAGS @NO_CONST_CFSTRINGS@"
OBJCFLAGS="$OBJCFLAGS @NO_CONST_CFSTRINGS@ @NO_WARN_UNUSED@"
LDFLAGS="@RPATH_LDFLAGS@"
LIBS="-L${libdir} -lobjfw @LIBS@"
VERSION="0.1"

show_help() {
	echo "$0: Available arguments are:"
	echo