Skip to content

Commit

Permalink
Fix some warnings that come up with Xcode.
Browse files Browse the repository at this point in the history
  • Loading branch information
jief committed Nov 9, 2023
1 parent 652c25f commit 2289e2e
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 8 deletions.
3 changes: 2 additions & 1 deletion Protocols/AppleImageCodec/load_icns.c
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,8 @@ VOID egCopyPlane(IN UINT8 *SrcPlanePtr, IN UINT8 *DestPlanePtr, IN UINTN PixelCo

for (i = 0; i < PixelCount; i++) {
*DestPlanePtr = *SrcPlanePtr;
DestPlanePtr += 4, SrcPlanePtr += 4;
DestPlanePtr += 4;
SrcPlanePtr += 4;
}
}

Expand Down
6 changes: 3 additions & 3 deletions Protocols/AppleImageCodec/picopng.c
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ void png_alloc_free(void *addr)
FreePool(addr);
}

void png_alloc_free_all()
void png_alloc_free_all(void)
{
while (png_alloc_tail) {
void *addr = png_alloc_tail->addr;
Expand Down Expand Up @@ -301,7 +301,7 @@ typedef struct
VECTOR_32 *tree2d;
} HuffmanTree;

HuffmanTree *HuffmanTree_new()
HuffmanTree *HuffmanTree_new(void)
{
HuffmanTree *tree = png_alloc_malloc(sizeof (HuffmanTree));
tree->tree2d = NULL;
Expand Down Expand Up @@ -1025,7 +1025,7 @@ INT32 PNG_convert(const PNG_INFO *info, VECTOR_8 *out, const UINT8 *in)
return 0;
}

PNG_INFO *PNG_info_new()
PNG_INFO *PNG_info_new(void)
{
PNG_INFO *info = png_alloc_malloc(sizeof (PNG_INFO));
UINT32 i;
Expand Down
2 changes: 1 addition & 1 deletion Protocols/AppleKeyAggregator/AppleKeyAggregator.c
Original file line number Diff line number Diff line change
Expand Up @@ -385,7 +385,7 @@ AggregatorEntryPoint (
IN EFI_SYSTEM_TABLE *SystemTable
) // start
#else
EFI_STATUS InstallAggregator()
EFI_STATUS InstallAggregator(void)
#endif
{
EFI_STATUS Status;
Expand Down
2 changes: 1 addition & 1 deletion Protocols/AppleKeyAggregator/AppleKeyAggregator.h
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,6 @@ typedef struct {
APPLE_KEY_STATE_PROTOCOL AggregatorProtocol; ///<0x50 size=8*3
} APPLE_KEY_MAP_AGGREGATOR; //size=0x68

EFI_STATUS InstallAggregator();
EFI_STATUS InstallAggregator(void);

#endif
2 changes: 1 addition & 1 deletion rEFIt_UEFI/cpp_lib/XmlLiteDictTypes.h
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ XmlParserPosition valuePos = xmlLiteParser->getPosition();
if ( xmlLiteParser->xmlParsingError ) {
return false;
}
int keyLen = keyTmp.value().length();
size_t keyLen = keyTmp.value().length();
if ( keyLen > 0 )
{
if ( !( keyTmp.value()[0] == '#' && ignoreCommented ) && !(keyTmp.value()[keyLen-1] == '?') )
Expand Down
2 changes: 1 addition & 1 deletion rEFIt_UEFI/refit/menu.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1103,7 +1103,7 @@ void ApplyInputs(void)
i++; //130
if (InputItems[i].Valid) {
INTN Minus = 0;
gSettings.Quirks.OcBooterQuirks.TscSyncTimeout = StrDecimalToUintn(InputItems[i].SValue.data(Minus));
gSettings.Quirks.OcBooterQuirks.TscSyncTimeout = (decltype(gSettings.Quirks.OcBooterQuirks.TscSyncTimeout))StrDecimalToUintn(InputItems[i].SValue.data(Minus));
DBG("set TscSyncTimeout=%d\n", gSettings.Quirks.OcBooterQuirks.TscSyncTimeout);
}
//gSettings.Smbios.SFakeCPU
Expand Down

0 comments on commit 2289e2e

Please sign in to comment.