1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-04-30 07:39:42 +02:00
Carlo Bramini 55008cba24
[WIN32] mod-script-pipe: fix compile error with GCC (#469)
When compiling with CMake and MinGW, I got these two errors:

audacity/lib-src/mod-script-pipe/PipeServer.cpp:18:29: warning: ISO C++ forbids converting a string constant to 'LPTSTR' {aka 'char*'} [-Wwrite-strings]
   18 |    LPTSTR pipeNameToSrv= _T("\\\\.\\pipe\\ToSrvPipe");

audacity/lib-src/mod-script-pipe/PipeServer.cpp:32:32: warning: ISO C++ forbids converting a string constant to 'LPTSTR' {aka 'char*'} [-Wwrite-strings]
   32 |    LPTSTR pipeNameFromSrv= __T("\\\\.\\pipe\\FromSrvPipe");

The solution is to replace LPTSTR and convert these two pointers into two const objects.
2020-03-25 08:24:12 -05:00
..
2020-03-17 08:16:09 -05:00
2020-01-31 09:29:15 -06:00
2019-12-17 12:54:30 -06:00
2019-12-17 12:54:30 -06:00
2019-12-13 23:43:01 -06:00
2020-03-24 21:58:00 +00:00