Skip to content

Commit 106e853

Browse files
author
Nat!
committed
fix a million unused parameter warnings because i will live forever :-/
1 parent 52730d2 commit 106e853

File tree

7 files changed

+18
-0
lines changed

7 files changed

+18
-0
lines changed

src/mulle-objc-class-convenience.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -226,6 +226,8 @@ static inline void __mulle_objc_instance_will_free( void *obj)
226226
_mulle_objc_instance_trace_free( obj);
227227
}
228228
}
229+
#else
230+
MULLE_C_UNUSED( obj);
229231
#endif
230232
}
231233

src/mulle-objc-class-search.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -159,6 +159,8 @@ static inline void
159159

160160
assert( p->mode != MULLE_OBJC_SEARCH_SPECIFIC_METHOD ||
161161
(p->classid != 0 && p->categoryid != MULLE_OBJC_INVALID_CATEGORYID));
162+
163+
MULLE_C_UNUSED( p);
162164
}
163165

164166

src/mulle-objc-object.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -287,6 +287,7 @@ MULLE_C_ALWAYS_INLINE static inline mulle_thread_t
287287
header = _mulle_objc_object_get_objectheader( obj);
288288
return( _mulle_objc_objectheader_get_thread( header));
289289
#else
290+
MULLE_C_UNUSED( obj);
290291
return( 0);
291292
#endif
292293
}
@@ -317,6 +318,9 @@ MULLE_C_ALWAYS_INLINE static inline void
317318
}
318319

319320
_mulle_objc_objectheader_set_thread( header, thread);
321+
#else
322+
MULLE_C_UNUSED( obj);
323+
MULLE_C_UNUSED( thread);
320324
#endif
321325
}
322326

src/mulle-objc-objectheader.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -184,6 +184,7 @@ MULLE_C_ALWAYS_INLINE static inline mulle_thread_t
184184
#if MULLE_OBJC_TAO_OBJECT_HEADER
185185
return( (mulle_thread_t) _mulle_atomic_pointer_read( &header->_thread));
186186
#else
187+
MULLE_C_UNUSED( header);
187188
return( 0);
188189
#endif
189190
}
@@ -210,6 +211,9 @@ MULLE_C_ALWAYS_INLINE static inline void
210211
{
211212
#if MULLE_OBJC_TAO_OBJECT_HEADER
212213
_mulle_atomic_pointer_write( &header->_thread, (void *) thread);
214+
#else
215+
MULLE_C_UNUSED( header);
216+
MULLE_C_UNUSED( thread);
213217
#endif
214218
}
215219

src/mulle-objc-signature.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -281,6 +281,8 @@ static inline void _mulle_objc_sprint_untypedsignature( char *buf, size_t size
281281
--args;
282282
}
283283
*buf = 0;
284+
285+
MULLE_C_UNUSED( size); // terrible
284286
}
285287

286288

src/mulle-objc-uniqueid.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,8 @@ int mulle_objc_uniqueid_is_sane_string( mulle_objc_uniqueid_t uniqueid, char *
117117
return( 0);
118118
}
119119
}
120+
#else
121+
MULLE_C_UNUSED( s);
120122
#endif
121123

122124
return( 1);

src/mulle-objc-universe.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3390,6 +3390,8 @@ static void _mulle_objc_universe_assert_tao_object_header( struct _mulle_objc_
33903390
else
33913391
assert( (universe->compilebits & 128) &&
33923392
"ensure that your C compiler uses the same __MULLE_OBJC_TPS__ flags as mulle-objc");
3393+
3394+
MULLE_C_UNUSED( universe);
33933395
}
33943396

33953397

0 commit comments

Comments
 (0)