]> git.ipfire.org Git - thirdparty/zstd.git/commit
fix compiling errors with clang-8 1690/head
authorQin Li <li@pigu.in>
Thu, 18 Jul 2019 18:44:59 +0000 (11:44 -0700)
committerQin Li <li@pigu.in>
Fri, 19 Jul 2019 02:41:00 +0000 (19:41 -0700)
commit04a9d6b8284a3761d30be58dc8dc18b89513794b
treef5ec412923dec7d3f9a8efac2b0ce66ba18103b1
parenta2861d75eb255ebb6bde02f8653ae530aefe7356
fix compiling errors with clang-8

Compiling with clang-8 fails with the following errors:

largeNbDicts.c:562:37: error: implicit conversion turns floating-point
number into integer: 'const double' to 'U64' (aka 'unsigned long')
[-Werror,-Wfloat-conversion]
        U64 const dTime_ns = result.nanoSecPerRun;
                  ~~~~~~~~   ~~~~~~~^~~~~~~~~~~~~

zstdcli.c:300:5: error: '@return' command used in a comment that is
not attached to a function or method declaration
[-Werror,-Wdocumentation]
 * @return 1 means that cover parameters were correct
   ~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

zstdcli.c:301:5: error: '@return' command used in a comment that is
not attached to a function or method declaration
[-Werror,-Wdocumentation]
 * @return 0 in case of malformed parameters
   ~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
contrib/largeNbDicts/largeNbDicts.c
programs/zstdcli.c