precice icon indicating copy to clipboard operation
precice copied to clipboard

Unknown escape sequence: `\;` in version description

Open davidscn opened this issue 9 months ago • 1 comments

precice-3.1.1/build/src/precice/impl/versions.cpp:4:50: warning: unknown escape sequence: '\;'
    4 | const char * const precice::versionInformation = "3.1.1;no-info [Git not found];PRECICE_FEATURE_MPI_COMMUNICATION=Y\;PRECICE_FEATURE_PETSC_MAPPING=Y\;PRECICE_FEATURE_GINKGO_MAPPING=N\;PRECICE_FEATURE_PYTHON_ACTIONS=N\;PRECICE_BINDINGS_C=Y\;PRECICE_BINDINGS_FORTRAN=Y\;CXX=GNU\;CXXFLAGS= -O3 -DNDEBUG\;LDFLAGS=";
      |                                                  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
precice-3.1.1/build/src/precice/impl/versions.cpp:4:50: warning: unknown escape sequence: '\;'
precice-3.1.1/build/src/precice/impl/versions.cpp:4:50: warning: unknown escape sequence: '\;'
precice-3.1.1/build/src/precice/impl/versions.cpp:4:50: warning: unknown escape sequence: '\;'
precice-3.1.1/build/src/precice/impl/versions.cpp:4:50: warning: unknown escape sequence: '\;'
precice-3.1.1/build/src/precice/impl/versions.cpp:4:50: warning: unknown escape sequence: '\;'
precice-3.1.1/build/src/precice/impl/versions.cpp:4:50: warning: unknown escape sequence: '\;'

Describe the problem The characters following the backslashes are not recognized as valid escape sequences. To include a literal backslash in a string, one would need to escape it by using two backslashes (\). This is just a warning, but we should fix it though, I think.

Step To Reproduce Still a bit puzzled. I was able to reproduce it in a docker container, but not on my OS.

davidscn avatar May 23 '24 15:05 davidscn