Another workaround you could use is the following:
Open the file "./Engine/Source/Programs/UnrealBuildTool/Linux/LinuxToolChain.cs"
Insert the following piece of code after line 343
if (CompilerVersionGreaterOrEqual(3, 7, 0))
{
Result += " -Wno-shift-negative-value"; // Triggered by ThirdParty/libJPG due to usage of: (-1) << ...
}
Rerun GenerateProjectFiles.sh
Rebuild Engine