SIGN IN SIGN UP

Silence -Wcast-qual warnings showing up with newer version of g++. (#87)

Somewhen between gcc 11 and a 14 pre-release, g++ started to complain
about the C-style casts:

subprocess.h: In function ‘int subprocess_create_ex(const char* const*, int, const char* const*, subprocess_s*)’:
subprocess.h:877:27: warning: cast from type ‘const char* const*’ to type ‘char* const*’ casts away qualifiers [-Wcast-qual]
  877 |                           (char *const *)commandLine, used_environment)) {
      |                           ^~~~~~~~~~~~~~~~~~~~~~~~~~

When compiling with GCC in C-mode, the issue is still there btw. The
pragmas existing for clang are needed for GCC as well.

Co-authored-by: Harri Porten <harri.porten@qt.io>
H
hporten committed
e84bb3899c8c04854ce14505783de55ec195c36c
Parent: 7e59b69
Committed by GitHub <noreply@github.com> on 5/19/2024, 3:11:55 PM