Skip to content

Commit 0cfadd2

Browse files
authored
Merge pull request #4689 from compnerd/check-mate
CoreFoundation: explicitly cast to the proper fptr types
2 parents 9bcec05 + 5f3e896 commit 0cfadd2

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

CoreFoundation/Parsing.subproj/CFXMLInterface.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1125,7 +1125,7 @@ _CFXMLDTDPtr _CFXMLNewDTD(_CFXMLDocPtr doc, const unsigned char* name, const uns
11251125
return xmlNewDtd(doc, name, publicID, systemID);
11261126
}
11271127

1128-
void _CFXMLNotationScanner(void* payload, void* data, xmlChar* name) {
1128+
void _CFXMLNotationScanner(void* payload, void* data, const xmlChar* name) {
11291129
xmlNotationPtr notation = (xmlNotationPtr)payload;
11301130
_cfxmlNotation* node = (_cfxmlNotation*)data;
11311131
node->type = XML_NOTATION_NODE;
@@ -1147,7 +1147,7 @@ _CFXMLDTDNodePtr _CFXMLParseDTDNode(const unsigned char* xmlString) {
11471147
xmlUnlinkNode(node);
11481148
} else if (dtd->notations) {
11491149
node = (xmlNodePtr)calloc(1, sizeof(_cfxmlNotation));
1150-
xmlHashScan((xmlNotationTablePtr)dtd->notations, &_CFXMLNotationScanner, (void*)node);
1150+
xmlHashScan((xmlNotationTablePtr)dtd->notations, &_CFXMLNotationScanner, node);
11511151
}
11521152

11531153
return node;

CoreFoundation/RunLoop.subproj/CFRunLoop.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1769,7 +1769,7 @@ CF_EXPORT CFRunLoopRef _CFRunLoopGet0(_CFThreadRef t) {
17691769
#if _POSIX_THREADS
17701770
_CFSetTSD(__CFTSDKeyRunLoopCntr, (void *)(PTHREAD_DESTRUCTOR_ITERATIONS-1), (void (*)(void *))__CFFinalizeRunLoop);
17711771
#else
1772-
_CFSetTSD(__CFTSDKeyRunLoopCntr, 0, &__CFFinalizeRunLoop);
1772+
_CFSetTSD(__CFTSDKeyRunLoopCntr, 0, (void (* _Nullable)(void * _Nullable))&__CFFinalizeRunLoop);
17731773
#endif
17741774
}
17751775
}

0 commit comments

Comments
 (0)