Silence unused variable warnings for compiler check variables.
This commit is contained in:
parent
1e7c200865
commit
7735d82c7b
@ -133,21 +133,21 @@ bool mpw_push_int(
|
|||||||
* @return true if successful, false if reallocation failed.
|
* @return true if successful, false if reallocation failed.
|
||||||
*/
|
*/
|
||||||
#define mpw_realloc(buffer, bufferSize, deltaSize) \
|
#define mpw_realloc(buffer, bufferSize, deltaSize) \
|
||||||
({ typeof(buffer) _b = buffer; const void *__b = *_b; __mpw_realloc( (const void **)_b, bufferSize, deltaSize ); })
|
({ typeof(buffer) _b = buffer; const void *__b = *_b; (void)__b; __mpw_realloc( (const void **)_b, bufferSize, deltaSize ); })
|
||||||
bool __mpw_realloc(const void **buffer, size_t *bufferSize, const size_t deltaSize);
|
bool __mpw_realloc(const void **buffer, size_t *bufferSize, const size_t deltaSize);
|
||||||
/** Free a buffer after zero'ing its contents, then set the reference to NULL. */
|
/** Free a buffer after zero'ing its contents, then set the reference to NULL. */
|
||||||
#define mpw_free(buffer, bufferSize) \
|
#define mpw_free(buffer, bufferSize) \
|
||||||
({ typeof(buffer) _b = buffer; const void *__b = *_b; __mpw_free( (const void **)_b, bufferSize ); })
|
({ typeof(buffer) _b = buffer; const void *__b = *_b; (void)__b; __mpw_free( (const void **)_b, bufferSize ); })
|
||||||
bool __mpw_free(
|
bool __mpw_free(
|
||||||
const void **buffer, const size_t bufferSize);
|
const void **buffer, const size_t bufferSize);
|
||||||
/** Free a string after zero'ing its contents, then set the reference to NULL. */
|
/** Free a string after zero'ing its contents, then set the reference to NULL. */
|
||||||
#define mpw_free_string(string) \
|
#define mpw_free_string(string) \
|
||||||
({ typeof(string) _s = string; const char *__s = *_s; __mpw_free_string( (const char **)_s ); })
|
({ typeof(string) _s = string; const char *__s = *_s; (void)__s; __mpw_free_string( (const char **)_s ); })
|
||||||
bool __mpw_free_string(
|
bool __mpw_free_string(
|
||||||
const char **string);
|
const char **string);
|
||||||
/** Free strings after zero'ing their contents, then set the references to NULL. Terminate the va_list with NULL. */
|
/** Free strings after zero'ing their contents, then set the references to NULL. Terminate the va_list with NULL. */
|
||||||
#define mpw_free_strings(strings, ...) \
|
#define mpw_free_strings(strings, ...) \
|
||||||
({ typeof(strings) _s = strings; const char *__s = *_s; __mpw_free_strings( (const char **)_s, __VA_ARGS__ ); })
|
({ typeof(strings) _s = strings; const char *__s = *_s; (void)__s; __mpw_free_strings( (const char **)_s, __VA_ARGS__ ); })
|
||||||
bool __mpw_free_strings(
|
bool __mpw_free_strings(
|
||||||
const char **strings, ...);
|
const char **strings, ...);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user