Skip to content

Commit

Permalink
Return __unused back
Browse files Browse the repository at this point in the history
  • Loading branch information
GLinnik21 committed May 8, 2024
1 parent e72ca14 commit f1f90a1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Sources/KSCrashRecordingCore/KSObjC.c
Original file line number Diff line number Diff line change
Expand Up @@ -162,8 +162,8 @@ static int getTaggedSlot(const void* pointer) { return (int)_objc_getTaggedPoint
static uintptr_t getTaggedPayload(const void* pointer) { return _objc_getTaggedPointerValue(pointer); }
static intptr_t getTaggedSignedPayload(const void* pointer) { return _objc_getTaggedPointerSignedValue(pointer); }
#else
static bool isTaggedPointer(const void* pointer) { return false; }
static int getTaggedSlot(const void* pointer) { return 0; }
static bool isTaggedPointer(__unused const void* pointer) { return false; }
static int getTaggedSlot(__unused const void* pointer) { return 0; }
static uintptr_t getTaggedPayload(const void* pointer) { return (uintptr_t)pointer; }
static intptr_t getTaggedSignedPayload(const void* pointer) { return (intptr_t)pointer; }
#endif
Expand Down Expand Up @@ -409,7 +409,7 @@ static CFAbsoluteTime extractTaggedNSDate(const void* const object)
} bits;
} encodedBits = { .raw = getTaggedPayload(object) };

if (encodedBits.raw == 0)
if (encodedBits.raw == 0)
{
return 0.0;
}
Expand Down

0 comments on commit f1f90a1

Please sign in to comment.