)]}'
{
  "commit": "f1e14eee666ba5bf04b386d7ca69cf0f56992b06",
  "tree": "54280c18886f6e1da186b74df8498ea5da4dd1ad",
  "parents": [
    "31d6c13defeba7716ebc9d5c8f81f2f35fe39980"
  ],
  "author": {
    "name": "Tom de Vries",
    "email": "tdevries@suse.de",
    "time": "Wed Jun 15 09:03:03 2022 +0200"
  },
  "committer": {
    "name": "Tom de Vries",
    "email": "tdevries@suse.de",
    "time": "Wed Jun 15 09:03:03 2022 +0200"
  },
  "message": "[gdb/build] Fix build for gcc \u003c 11\n\nWhen building trunk on openSUSE Leap 15.3 with system gcc 7.5.0, I run into:\n...\nIn file included from ../bfd/bfd.h:46:0,\n                 from gdb/defs.h:37,\n                 from gdb/debuginfod-support.c:19:\ngdb/debuginfod-support.c: In function ‘bool debuginfod_is_enabled()’:\ngdb/../include/diagnostics.h:42:3: error: unknown option after \\\n  ‘#pragma GCC diagnostic’ kind [-Werror\u003dpragmas]\n   _Pragma (DIAGNOSTIC_STRINGIFY (GCC diagnostic ignored option))\n   ^\ngdb/../include/diagnostics.h:80:3: note: in expansion of macro \\\n  ‘DIAGNOSTIC_IGNORE’\n   DIAGNOSTIC_IGNORE (\"-Wstringop-overread\")\n   ^~~~~~~~~~~~~~~~~\ngdb/debuginfod-support.c:201:4: note: in expansion of macro \\\n  ‘DIAGNOSTIC_IGNORE_STRINGOP_OVERREAD’\n    DIAGNOSTIC_IGNORE_STRINGOP_OVERREAD\n    ^\n...\n\nThe problem is that the warning -Wstringop-overread has been introduced for\ngcc 11, and we can only tell gcc to ignore if it knows about it.\n\nFix this by guarding the DIAGNOSTIC_IGNORE_STRINGOP_OVERREAD definition in\ndiagnostics.c with \u0027#if __GNUC__ \u003e\u003d 11\u0027.\n\nTested on x86_64-linux, by completing a build.\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "8bf5a3c3d9b155913f363c8d6f39637c40004d5d",
      "old_mode": 33188,
      "old_path": "include/diagnostics.h",
      "new_id": "3da88282261466f71cfc212f85c381f33d3694d2",
      "new_mode": 33188,
      "new_path": "include/diagnostics.h"
    }
  ]
}
