)]}'
{
  "commit": "74dea0e13cb5192f5754ccbb40054472d62f4aaf",
  "tree": "6de2f1b714ecb27e586d85378045dc39ef9a4708",
  "parents": [
    "41b3eb4a6bff4d38bb188d28544bf901080d9e96"
  ],
  "author": {
    "name": "Stefan Beller",
    "email": "sbeller@google.com",
    "time": "Mon Dec 18 13:49:47 2017 -0800"
  },
  "committer": {
    "name": "Junio C Hamano",
    "email": "gitster@pobox.com",
    "time": "Fri Dec 22 10:42:04 2017 -0800"
  },
  "message": "t/helper/test-lazy-name-hash: fix compilation\n\nI was compiling origin/master today with DEVELOPER compiler flags\nand was greeted by:\n\nt/helper/test-lazy-init-name-hash.c: In function ‘cmd_main’:\nt/helper/test-lazy-init-name-hash.c:172:5: error: ‘nr_threads_used’ may be used uninitilized in this function [-Werror\u003dmaybe-uninitialized]\n     printf(\"avg [size %8d] [single %f] %c [multi %f %d]\\n\",\n     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n         nr,\n         ~~~\n         (double)avg_single/1000000000,\n         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n         (avg_single \u003c avg_multi ? \u0027\u003c\u0027 : \u0027\u003e\u0027),\n         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n         (double)avg_multi/1000000000,\n         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n         nr_threads_used);\n         ~~~~~~~~~~~~~~~~\nt/helper/test-lazy-init-name-hash.c:115:6: note: ‘nr_threads_used’ was declared here\n  int nr_threads_used;\n      ^~~~~~~~~~~~~~~\n\nI do not see how we can arrive at that line without having `nr_threads_used`\ninitialized, as we\u0027d have `count \u003e 1`  (which asserts that we ran the\nloop above at least once, such that it *should* be initialized).\n\nJust clear the variable at the beginning of the function to squelch\nthe warning.\n\nSigned-off-by: Stefan Beller \u003csbeller@google.com\u003e\nAcked-by: Jeff Hostetler \u003cjeffhost@microsoft.com\u003e\nSigned-off-by: Junio C Hamano \u003cgitster@pobox.com\u003e\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "6368a89345e1783ec975c5f6c2c2c66b7ddb9dcb",
      "old_mode": 33188,
      "old_path": "t/helper/test-lazy-init-name-hash.c",
      "new_id": "297fb01d61eded5d83d02175199efcd217376738",
      "new_mode": 33188,
      "new_path": "t/helper/test-lazy-init-name-hash.c"
    }
  ]
}
