Skip to content

Commit d563c4d

Browse files
committed
fix some other MinGW gcc warns
1 parent e9d01fd commit d563c4d

2 files changed

Lines changed: 5 additions & 4 deletions

File tree

src/audio/playback/wasapi.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
* @author Martin Pulec <martin.pulec@cesnet.cz>
44
*/
55
/*
6-
* Copyright (c) 2019-2023 CESNET, z. s. p. o.
6+
* Copyright (c) 2019-2026 CESNET, zájmové sružení právnických osob
77
* All rights reserved.
88
*
99
* This program is free software: you can redistribute it and/or modify
@@ -102,7 +102,7 @@ string wasapi_get_name(IMMDevice *pDevice); // defined in audio/playback/wasapi.
102102
static void audio_play_wasapi_probe(struct device_info **available_devices, int *dev_count, void (**deleter)(void *))
103103
{
104104
*deleter = free;
105-
*available_devices = (struct device_info *) malloc(0);
105+
*available_devices = nullptr;
106106
*dev_count = 0;
107107

108108
IMMDeviceEnumerator *enumerator = nullptr;

src/utils/windows.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
* @author Martin Pulec <pulec@cesnet.cz>
44
*/
55
/*
6-
* Copyright (c) 2019-2025 CESNET
6+
* Copyright (c) 2019-2026 CESNET, zájmové sružení právnických osob
77
* All rights reserved.
88
*
99
* Redistribution and use in source and binary forms, with or without
@@ -277,7 +277,8 @@ get_windows_build()
277277
typedef NTSTATUS(WINAPI * RtlGetVersionFunc)(
278278
PRTL_OSVERSIONINFOW lpVersionInformation);
279279
RtlGetVersionFunc pRtlGetVersion =
280-
(RtlGetVersionFunc) GetProcAddress(hNtDll, "RtlGetVersion");
280+
(RtlGetVersionFunc) (void *) GetProcAddress(hNtDll,
281+
"RtlGetVersion");
281282
if (pRtlGetVersion == NULL) {
282283
MSG(VERBOSE, "Cannot get RtlGetVersion from ntdll.dll!\n");
283284
return 0;

0 commit comments

Comments
 (0)