Build errors using Clang 15
Bond-009 opened this issue · 4 comments
Bond-009 commented
Client version: x.x.x
Server OS: Linux
Cuberite Commit id: a7f287e
/home/bond/dev/cuberite/lib/mbedtls/library/bignum.c:1395:29: error: variable 't' set but not used [-Werror,-Wunused-but-set-variable]
mbedtls_mpi_uint c = 0, t = 0;
^
1 error generated.
ChillerDragon commented
https://github.com/cuberite/polarssl/tree/master
Is 5k commits behind upstream someone should update that.
Bond-009 commented
Just tested, this is still an issue
In file included from /home/bond/dev/cuberite/lib/mbedtls/library/psa_crypto.c:29:
/home/bond/dev/cuberite/lib/mbedtls/include/psa/crypto.h:91:23: error: empty paragraph passed to '\retval' command [-Werror,-Wdocumentation]
* \retval #PSA_SUCCESS
~~~~~~~~~~~~~~~~~~~^
/home/bond/dev/cuberite/lib/mbedtls/include/psa/crypto.h:92:41: error: empty paragraph passed to '\retval' command [-Werror,-Wdocumentation]
* \retval #PSA_ERROR_INSUFFICIENT_MEMORY
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
/home/bond/dev/cuberite/lib/mbedtls/include/psa/crypto.h:93:42: error: empty paragraph passed to '\retval' command [-Werror,-Wdocumentation]
* \retval #PSA_ERROR_INSUFFICIENT_STORAGE
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
/home/bond/dev/cuberite/lib/mbedtls/include/psa/crypto.h:94:43: error: empty paragraph passed to '\retval' command [-Werror,-Wdocumentation]
* \retval #PSA_ERROR_COMMUNICATION_FAILURE
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
/home/bond/dev/cuberite/lib/mbedtls/include/psa/crypto.h:95:38: error: empty paragraph passed to '\retval' command [-Werror,-Wdocumentation]
* \retval #PSA_ERROR_HARDWARE_FAILURE
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
/home/bond/dev/cuberite/lib/mbedtls/include/psa/crypto.h:96:41: error: empty paragraph passed to '\retval' command [-Werror,-Wdocumentation]
* \retval #PSA_ERROR_CORRUPTION_DETECTED
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
/home/bond/dev/cuberite/lib/mbedtls/include/psa/crypto.h:97:42: error: empty paragraph passed to '\retval' command [-Werror,-Wdocumentation]
* \retval #PSA_ERROR_INSUFFICIENT_ENTROPY
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
/home/bond/dev/cuberite/lib/mbedtls/include/psa/crypto.h:98:37: error: empty paragraph passed to '\retval' command [-Werror,-Wdocumentation]
* \retval #PSA_ERROR_STORAGE_FAILURE
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
/home/bond/dev/cuberite/lib/mbedtls/include/psa/crypto.h:99:34: error: empty paragraph passed to '\retval' command [-Werror,-Wdocumentation]
* \retval #PSA_ERROR_DATA_INVALID
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
/home/bond/dev/cuberite/lib/mbedtls/include/psa/crypto.h:100:34: error: empty paragraph passed to '\retval' command [-Werror,-Wdocumentation]
* \retval #PSA_ERROR_DATA_CORRUPT
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
/home/bond/dev/cuberite/lib/mbedtls/include/psa/crypto.h:371:23: error: empty paragraph passed to '\retval' command [-Werror,-Wdocumentation]
* \retval #PSA_SUCCESS
~~~~~~~~~~~~~~~~~~~^
/home/bond/dev/cuberite/lib/mbedtls/include/psa/crypto.h:372:36: error: empty paragraph passed to '\retval' command [-Werror,-Wdocumentation]
* \retval #PSA_ERROR_INVALID_HANDLE
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
/home/bond/dev/cuberite/lib/mbedtls/include/psa/crypto.h:373:41: error: empty paragraph passed to '\retval' command [-Werror,-Wdocumentation]
* \retval #PSA_ERROR_INSUFFICIENT_MEMORY
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
/home/bond/dev/cuberite/lib/mbedtls/include/psa/crypto.h:374:43: error: empty paragraph passed to '\retval' command [-Werror,-Wdocumentation]
* \retval #PSA_ERROR_COMMUNICATION_FAILURE
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
/home/bond/dev/cuberite/lib/mbedtls/include/psa/crypto.h:375:41: error: empty paragraph passed to '\retval' command [-Werror,-Wdocumentation]
* \retval #PSA_ERROR_CORRUPTION_DETECTED
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
/home/bond/dev/cuberite/lib/mbedtls/include/psa/crypto.h:376:37: error: empty paragraph passed to '\retval' command [-Werror,-Wdocumentation]
* \retval #PSA_ERROR_STORAGE_FAILURE
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
/home/bond/dev/cuberite/lib/mbedtls/include/psa/crypto.h:377:34: error: empty paragraph passed to '\retval' command [-Werror,-Wdocumentation]
* \retval #PSA_ERROR_DATA_CORRUPT
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
/home/bond/dev/cuberite/lib/mbedtls/include/psa/crypto.h:378:34: error: empty paragraph passed to '\retval' command [-Werror,-Wdocumentation]
* \retval #PSA_ERROR_DATA_INVALID
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
/home/bond/dev/cuberite/lib/mbedtls/include/psa/crypto.h:489:23: error: empty paragraph passed to '\retval' command [-Werror,-Wdocumentation]
* \retval #PSA_SUCCESS
~~~~~~~~~~~~~~~~~~~^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
madmaxoft commented
Sorry about that, I only have clang-16 so I wasn't able to test the changes on clang-15, I assumed they were fixed. I'll try another PR shortly and would like to ask you for help testing it.
Bond-009 commented
Np, I was planning on testing the previous PR but it was merged before I had the chance