ObjFW  Check-in [668be94ea4]

Overview
Comment:Make headers compatible with -Wunused-parameter
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | 1.1
Files: files | file ages | folders
SHA3-256: 668be94ea48e2a78243d23fb4614a0eda75fbafc8a0f2eb5b91e3abecf2a6e86
User & Date: js on 2024-08-11 13:23:55
Other Links: branch diff | manifest | tags
Context
2024-08-11
13:28
Update ChangeLog for 1.1.6 check-in: 11715557b8 user: js tags: 1.1
13:23
Make headers compatible with -Wunused-parameter check-in: 668be94ea4 user: js tags: 1.1
13:23
Make headers compatible with -Wunused-parameter check-in: f01f8eb45b user: js tags: trunk
2024-08-02
10:52
runtime: Don't overwrite stack arguments on x86 check-in: aa04d7888d user: js tags: 1.1
Changes

Modified src/OFPlainMutex.h from [31506d7dcf] to [b6a04ba6c6].

274
275
276
277
278
279
280


281
282
283
284
285
286
287
 * @param spinlock A pointer to the spinlock to destroy
 * @return 0 on success, or an error number from `<errno.h>` on error
 */
static OF_INLINE int
OFSpinlockFree(OFSpinlock *spinlock)
{
#if defined(OF_HAVE_ATOMIC_OPS)


	return 0;
#elif defined(OF_HAVE_PTHREAD_SPINLOCKS)
	return pthread_spin_destroy(spinlock);
#else
	return OFPlainMutexFree(spinlock);
#endif
}







>
>







274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
 * @param spinlock A pointer to the spinlock to destroy
 * @return 0 on success, or an error number from `<errno.h>` on error
 */
static OF_INLINE int
OFSpinlockFree(OFSpinlock *spinlock)
{
#if defined(OF_HAVE_ATOMIC_OPS)
	(void)spinlock;

	return 0;
#elif defined(OF_HAVE_PTHREAD_SPINLOCKS)
	return pthread_spin_destroy(spinlock);
#else
	return OFPlainMutexFree(spinlock);
#endif
}