1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-04-30 07:39:42 +02:00
audacity/lib-src/mod-script-pipe
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
..
2018-04-06 13:11:32 +01:00
2018-04-06 13:11:32 +01:00
2018-04-06 13:11:32 +01:00
2018-04-06 11:54:15 +01:00
2018-04-06 11:53:57 +01:00
2018-04-06 13:11:32 +01:00