OSDN Git Service

[Refactor] #2693 使われていないものの、関数ポインタの都合により存在するparse_k_info() の引数に変数名を明記した
authorHourier <66951241+Hourier@users.noreply.github.com>
Sun, 9 Oct 2022 07:25:02 +0000 (16:25 +0900)
committerHourier <66951241+Hourier@users.noreply.github.com>
Sun, 9 Oct 2022 08:33:53 +0000 (17:33 +0900)
src/info-reader/kind-reader.cpp

index 0b2798c..2440cb3 100644 (file)
@@ -39,8 +39,9 @@ static bool grab_one_kind_flag(BaseItemInfo *k_ptr, std::string_view what)
  * @param head ヘッダ構造体
  * @return エラーコード
  */
-errr parse_k_info(std::string_view buf, angband_header *)
+errr parse_k_info(std::string_view buf, angband_header *head)
 {
+    (void)head;
     static BaseItemInfo *k_ptr = nullptr;
     const auto &tokens = str_split(buf, ':', false, 10);