)]}'
{
  "commit": "f4c5778b2dca447ae130cfab6cc9b7b614e7ec43",
  "tree": "9f905041ca3cadd3dad2a6b8d908a099d11340b2",
  "parents": [
    "42e862c0b3127736040790a11a4f44a0dee69888"
  ],
  "author": {
    "name": "Jeff King",
    "email": "peff@peff.net",
    "time": "Mon Sep 18 18:31:48 2023 -0400"
  },
  "committer": {
    "name": "Junio C Hamano",
    "email": "gitster@pobox.com",
    "time": "Mon Sep 18 15:56:14 2023 -0700"
  },
  "message": "fsmonitor: mark some maybe-unused parameters\n\nThere\u0027s a bit of conditionally-compiled code in fsmonitor, so some\nfunction parameters may be unused depending on the build options:\n\n  - in fsmonitor--daemon.c\u0027s try_to_run_foreground_daemon(), we take a\n    detach_console argument, but it\u0027s only used on Windows. This seems\n    intentional (and not mistakenly missing other platforms) based on\n    the discussion in c284e27ba7 (fsmonitor--daemon: implement \u0027start\u0027\n    command, 2022-03-25), which introduced it.\n\n  - in fsmonitor-setting.c\u0027s check_for_incompatible(), we pass the \"ipc\"\n    flag down to the system-specific fsm_os__incompatible() helper. But\n    we can only do so if our platform has such a helper.\n\nIn both cases we can mark the argument as MAYBE_UNUSED. That annotates\nit enough to suppress the compiler\u0027s -Wunused-parameter warning, but\nwithout making it impossible to use the variable, as a regular UNUSED\nannotation would.\n\nSigned-off-by: Jeff King \u003cpeff@peff.net\u003e\nSigned-off-by: Junio C Hamano \u003cgitster@pobox.com\u003e\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "7e99c4d61ba95942014d8ab2681568f53658fd0d",
      "old_mode": 33188,
      "old_path": "builtin/fsmonitor--daemon.c",
      "new_id": "7c4130c9811bd526748651f284aa1330dff30abe",
      "new_mode": 33188,
      "new_path": "builtin/fsmonitor--daemon.c"
    },
    {
      "type": "modify",
      "old_id": "b62acf44aee2b9c029fac4389f6af7e4c4df6dab",
      "old_mode": 33188,
      "old_path": "fsmonitor-settings.c",
      "new_id": "a6a9e6bc199ec2ea0b608212da2f5b4a6edd94ed",
      "new_mode": 33188,
      "new_path": "fsmonitor-settings.c"
    }
  ]
}
