ObjFW  Check-in [76852cdf91]

Overview
Comment:Fix a warning about an unused variable.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: 76852cdf9187fcc952463da28c787629e04714416dbecb421f9bbe52c29d9ed9
User & Date: js on 2012-09-21 19:40:47
Other Links: manifest | tags
Context
2012-09-25
09:44
Selector name consistency. check-in: bb5822582b user: js tags: trunk
2012-09-21
19:40
Fix a warning about an unused variable. check-in: 76852cdf91 user: js tags: trunk
2012-09-20
00:07
Remove a comparison that's always true. check-in: 55f78b1067 user: js tags: trunk
Changes

Modified src/OFThread.m from [5df0e5d983] to [c4706ccc79].

61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
static of_tlskey_t threadSelfKey;
static OFThread *mainThread;

static id
call_main(id object)
{
	OFThread *thread = (OFThread*)object;
	void *pool;

	if (!of_tlskey_set(threadSelfKey, thread))
		@throw [OFInitializationFailedException
		    exceptionWithClass: [thread class]];

	pool = objc_autoreleasePoolPush();

	/*
	 * Nasty workaround for thread implementations which can't return a
	 * value on join.
	 */
#ifdef OF_HAVE_BLOCKS
	if (thread->block != NULL)







<





|







61
62
63
64
65
66
67

68
69
70
71
72
73
74
75
76
77
78
79
80
static of_tlskey_t threadSelfKey;
static OFThread *mainThread;

static id
call_main(id object)
{
	OFThread *thread = (OFThread*)object;


	if (!of_tlskey_set(threadSelfKey, thread))
		@throw [OFInitializationFailedException
		    exceptionWithClass: [thread class]];

	objc_autoreleasePoolPush();

	/*
	 * Nasty workaround for thread implementations which can't return a
	 * value on join.
	 */
#ifdef OF_HAVE_BLOCKS
	if (thread->block != NULL)