Paraview 5.7.0 FTBS on Debian/bullseye

Trying to rebuild Paraview 5.7.0 on Debian/Bullseye I got this error:

In file included from /build/paraview-5.7.0/VTK/GUISupport/Qt/QVTKRenderWindowAdapter.cxx:20:
/build/paraview-5.7.0/VTK/GUISupport/Qt/QVTKRenderWindowAdapter.cxx: In member function 'void QVTKRenderWindowAdapter::QVTKInternals::paint()':
/build/paraview-5.7.0/VTK/Common/Core/vtkLogger.h:488:69: error: format not a string literal and no format arguments [-Werror=format-security]
  488 |     : vtkLogger::LogScopeRAII(level, __FILE__, __LINE__, __VA_ARGS__)
      |                                                                     ^
/build/paraview-5.7.0/VTK/Common/Core/vtkLogger.h:491:3: note: in expansion of macro 'vtkVLogScopeF'
  491 |   vtkVLogScopeF(vtkLogger::VERBOSITY_##verbosity_name, __VA_ARGS__)
      |   ^~~~~~~~~~~~~
/build/paraview-5.7.0/VTK/Common/Core/vtkLogger.h:493:45: note: in expansion of macro 'vtkLogScopeF'
  493 | #define vtkLogScopeFunction(verbosity_name) vtkLogScopeF(verbosity_name, __func__)
      |                                             ^~~~~~~~~~~~
/build/paraview-5.7.0/VTK/GUISupport/Qt/QVTKRenderWindowAdapter.cxx:271:5: note: in expansion of macro 'vtkLogScopeFunction'
  271 |     vtkLogScopeFunction(TRACE);
      |     ^~~~~~~~~~~~~~~~~~~
[

 

g++ --version
g++ (Debian 9.2.1-8) 9.2.1 20190909

Any hints to fix this?
Best
C

@utkarsh.ayachit

I suspect that log line can just be removed though.