)]}'
{
  "commit": "2da39de8dfb3f8dbb364cd414bdd6bee9d5f18bf",
  "tree": "e75af7259cfe991840613dc0a3ba830ab6391318",
  "parents": [
    "e7bb5090cb094ab9d9d13c1852a7cd7e65128b66"
  ],
  "author": {
    "name": "Enze Li",
    "email": "enze.li@hotmail.com",
    "time": "Mon Sep 11 22:40:43 2023 +0800"
  },
  "committer": {
    "name": "John Baldwin",
    "email": "jhb@FreeBSD.org",
    "time": "Fri Sep 22 12:23:44 2023 -0700"
  },
  "message": "fbsd-nat: Pacify gcc with no functional changes\n\nI see these errors on FreeBSD/aarch64 when using gcc 12 without passing\n--disable-werror.\n\n\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\n  CXX    fbsd-nat.o\nfbsd-nat.c: In member function \u0027void fbsd_nat_target::resume_one_process(ptid_t, int, gdb_signal)\u0027:\nfbsd-nat.c:1208:11: error: unused variable \u0027request\u0027 [-Werror\u003dunused-variable]\n 1208 |       int request;\n      |           ^~~~~~~\nfbsd-nat.c: In member function \u0027virtual ptid_t fbsd_nat_target::wait(ptid_t, target_waitstatus*, target_wait_flags)\u0027:\nfbsd-nat.c:1726:22: error: declaration of \u0027inf\u0027 shadows a previous local [-Werror\u003dshadow\u003dcompatible-local]\n 1726 |       for (inferior *inf : all_non_exited_inferiors (this))\n      |                      ^~~\nfbsd-nat.c:1697:17: note: shadowed declaration is here\n 1697 |       inferior *inf \u003d find_inferior_ptid (this, wptid);\n      |                 ^~~\nfbsd-nat.c: In member function \u0027virtual void fbsd_nat_target::detach(inferior*, int)\u0027:\nfbsd-nat.c:2044:18: error: variable \u0027wptid\u0027 set but not used [-Werror\u003dunused-but-set-variable]\n 2044 |           ptid_t wptid \u003d wait_1 (ptid, \u0026ws, 0);\n      |                  ^~~~~\ncc1plus: all warnings being treated as errors\n\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\n\nThis patch includes the following non-functional changes,\n\n1. Remove unused variable \"request\".\n2. Rename inf to inf_p to avoid shadowed declaration warnings.\n3. Mark wptid as used when USE_SIGTRAP_SIGINFO is defined.\n\nTested on FreeBSD/aarch64 by rebuilding.\n\nApproved-By: John Baldwin \u003cjhb@FreeBSD.org\u003e\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "0ee3bccb5ef81bff560e3e36fabbaaf57bc85151",
      "old_mode": 33188,
      "old_path": "gdb/fbsd-nat.c",
      "new_id": "81a77b3a60fee90bb1293f13341f8c70f9f25c2b",
      "new_mode": 33188,
      "new_path": "gdb/fbsd-nat.c"
    }
  ]
}
