Skip to content

Commit

Permalink
Fix unused-variable violations in code.
Browse files Browse the repository at this point in the history
  • Loading branch information
dmaclach authored and thomasvl committed Jul 7, 2022
1 parent 18da70c commit e68733f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions DebugUtils/GTMDebugSelectorValidation.h
Expand Up @@ -56,7 +56,7 @@ static void GTMAssertSelectorNilOrImplementedWithReturnTypeAndArguments(id obj,
while ((expectedArgType = va_arg(argList, const char*)) != 0) {

if ([sig numberOfArguments] > argCount) {
const char *foundArgType = [sig getArgumentTypeAtIndex:argCount];
const char *foundArgType __unused = [sig getArgumentTypeAtIndex:argCount];

_GTMDevAssert(0 == strncmp(foundArgType, expectedArgType, strlen(expectedArgType)),
@"\"%@\" selector \"%@\" argument %u should be type %s",
Expand All @@ -77,7 +77,7 @@ static void GTMAssertSelectorNilOrImplementedWithReturnTypeAndArguments(id obj,

// if asked, validate the return type
if (retType && (strcmp("gtm_skip_return_test", retType) != 0)) {
const char *foundRetType = [sig methodReturnType];
const char *foundRetType __unused = [sig methodReturnType];
_GTMDevAssert(0 == strncmp(foundRetType, retType, strlen(retType)),
@"\"%@\" selector \"%@\" return type should be type %s",
NSStringFromClass([obj class]),
Expand Down

0 comments on commit e68733f

Please sign in to comment.