]> git.ipfire.org Git - thirdparty/xz.git/commitdiff
Fix warnings from clang -Wdocumentation.
authorLasse Collin <lasse.collin@tukaani.org>
Thu, 12 Jan 2023 01:11:40 +0000 (03:11 +0200)
committerLasse Collin <lasse.collin@tukaani.org>
Sat, 11 Mar 2023 19:37:49 +0000 (21:37 +0200)
src/liblzma/check/check.h
src/liblzma/lz/lz_encoder_mf.c
src/xz/options.c

index 3007d889b0f3a561533f8c3ad1334630f50523c6..783627bd21b96db1d451a868a74ad891abc8babe 100644 (file)
@@ -108,10 +108,6 @@ extern const uint64_t lzma_crc64_table[4][256];
 
 
 /// \brief      Initialize *check depending on type
-///
-/// \return     LZMA_OK on success. LZMA_UNSUPPORTED_CHECK if the type is not
-///             supported by the current version or build of liblzma.
-///             LZMA_PROG_ERROR if type > LZMA_CHECK_ID_MAX.
 extern void lzma_check_init(lzma_check_state *check, lzma_check type);
 
 /// Update the check state
index d03657a7c93a97de23e1ec3d40e4dc3f78434b72..f20316f0561663257f9228afe7a8d83acd6f75da 100644 (file)
@@ -242,8 +242,8 @@ do { \
 /// \param      cur_match       Start position of the current match candidate
 /// \param      depth           Maximum length of the hash chain
 /// \param      son             lzma_mf.son (contains the hash chain)
-/// \param      cyclic_pos
-/// \param      cyclic_size
+/// \param      cyclic_pos      lzma_mf.cyclic_pos
+/// \param      cyclic_size     lzma_mf_cyclic_size
 /// \param      matches         Array to hold the matches.
 /// \param      len_best        The length of the longest match found so far.
 static lzma_match *
index 0c1ee221b22e57abe74782df2554fc780ee5b8c1..ab73b77d5bcca3869e34cc1296766ebf99017935 100644 (file)
@@ -49,13 +49,13 @@ typedef struct {
 /// is called, which should update the given value to filter-specific
 /// options structure.
 ///
+/// This returns only if no errors occur.
+///
 /// \param      str     String containing the options from the command line
 /// \param      opts    Filter-specific option map
 /// \param      set     Filter-specific function to update filter_options
 /// \param      filter_options  Pointer to filter-specific options structure
 ///
-/// \return     Returns only if no errors occur.
-///
 static void
 parse_options(const char *str, const option_map *opts,
                void (*set)(void *filter_options,