JDimproved / JDim

2ch browser for linux
https://jdimproved.github.io/JDim/
GNU General Public License v2.0
44 stars 11 forks source link

Fix compiler warnings for -Wdocumentation and related warnings #1328

Closed ma8ma closed 5 months ago

ma8ma commented 5 months ago

Doxygenのコメントに誤りがあるとコンパイラーに指摘されたため修正します。

clang-17のレポート (file pathを一部省略)

src/jdlib/miscutil.cpp:1071:26: warning: HTML tag 'span' requires an end tag [-Wdocumentation-html]
 1071 |  * @details `<mark>`と`<span>`タグの色を設定して文字参照をデコードして返す。
      |                        ~^~~~~
src/jdlib/miscutil.h:105:42: warning: unknown command tag name [-Wdocumentation-unknown-command]
  105 |     /// str に含まれる改行文字(`\r\n`)を replace に置き換え
      |                                 ^~
src/main.cpp:479:15: warning: parameter 'hint' not found in the function declaration [-Wdocumentation]
  479 |  * @param[in] hint  未使用
      |               ^~~~