message: Fix the warnings reporting in CI
  GCC (and probably clang) directs warning and error messages to stderr, so
  capturing stdout for warnigs was useless.
diff: @@ -135,8 +135,8 @@ def doBuildCocoa(def isPublishingRun, def isPublishingLatestRun) {
  runAndCollectWarnings(
  parser: 'clang',
  script: '''
  - sh build.sh build-cocoa
  - sh build.sh check-debug
  + sh build.sh build-cocoa 2>&1
  + sh build.sh check-debug 2>&1
  '''
  )
  @@ -190,7 +190,7 @@ def doBuildInDocker(String command) {
  buildEnv.inside {
  sh 'sh build.sh config'
  try {
  - runAndCollectWarnings(script: "sh build.sh ${command}")
  + runAndCollectWarnings(script: "sh build.sh ${command} 2>&1")
  } finally {
  recordTests(command)
  }
  @@ -338,7 +338,7 @@ def doBuildNodeInDocker(def isPublishingRun, def isPublishingLatestRun) {
  withEnv(environment) {
  buildEnv.inside {
  sh 'sh build.sh config'
  - runAndCollectWarnings(script: 'sh build.sh build-node-package')
  + runAndCollectWarnings(script: 'sh build.sh build-node-package 2>&1')
  sh 'cp realm-core-node-*.tar.gz realm-core-node-linux-latest.tar.gz'
  if (isPublishingRun) {
  stash includes: '*realm-core-node-linux-*.*.*.tar.gz', name: 'node-linux-package'
  @@ -363,7 +363,7 @@ def doBuildNodeInOsx(def isPublishingRun, def isPublishingLatestRun) {
  def environment = ['REALM_ENABLE_ENCRYPTION=yes', 'REALM_ENABLE_ASSERTIONS=yes']
  withEnv(environment) {
  sh 'sh build.sh config'
  - runAndCollectWarnings(parser: 'clang', script: 'sh build.sh build-node-package')
  + runAndCollectWarnings(parser: 'clang', script: 'sh build.sh build-node-package 2>&1')
  sh 'cp realm-core-node-*.tar.gz realm-core-node-osx-latest.tar.gz'
  if (isPublishingRun) {
  stash includes: '*realm-core-node-osx-*.*.*.tar.gz', name: 'node-cocoa-package'
  @@ -392,8 +392,8 @@ def doBuildOsxDylibs(def version, def isPublishingRun, def isPublishingLatestRun
  withEnv(environment) {
  sh 'sh build.sh config'
  runAndCollectWarnings(parser: 'clang', script: '''
  - sh build.sh build
  - sh build.sh check-debug
  + sh build.sh build 2>&1
  + sh build.sh check-debug 2>&1
  ''')
  dir('src/realm') {
  @@ -435,7 +435,7 @@ def doBuildAndroid(def isPublishingRun) {
  withEnv(environment) {
  sh "sh build.sh config '${pwd()}/install'"
  - runAndCollectWarnings(script: "sh build.sh ${target}")
  + runAndCollectWarnings(script: "sh build.sh ${target} 2>&1")
  }
  if (isPublishingRun) {
  stash includes: 'realm-core-android-*.tar.gz', name: 'android-package'
  