From 7b400d43c16dfea76ea3cebbe436281915f65dea Mon Sep 17 00:00:00 2001 From: Charles Pigott Date: Sat, 3 Aug 2019 09:09:21 +0100 Subject: Codechange: Fix warning about discarding qualifiers by *really* casting the variable --- src/music/win32_m.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/music/win32_m.cpp b/src/music/win32_m.cpp index 777f1185e..da26dfb6d 100644 --- a/src/music/win32_m.cpp +++ b/src/music/win32_m.cpp @@ -83,7 +83,7 @@ static void TransmitSysex(const byte *&msg_start, size_t &remaining) /* prepare header */ MIDIHDR *hdr = CallocT(1); - hdr->lpData = (LPSTR)msg_start; + hdr->lpData = reinterpret_cast(const_cast(msg_start)); hdr->dwBufferLength = msg_end - msg_start; if (midiOutPrepareHeader(_midi.midi_out, hdr, sizeof(*hdr)) == MMSYSERR_NOERROR) { /* transmit - just point directly into the data buffer */ -- cgit v1.2.3-70-g09d2