mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2025-12-24 17:41:01 +03:00
Fix warnings from clang-16
Running clang-16 on mbedtls reports warnings of type "-Wstrict-prototypes". This patch fixes these warnings by adding void to functions with no arguments. The generate_test_code.py is modified to insert void into test functions with no arguments in *.function files. Signed-off-by: Gowtham Suresh Kumar <gowtham.sureshkumar@arm.com>
This commit is contained in:
@@ -644,7 +644,7 @@ void delay_packet(packet *delay)
|
||||
memcpy(&prev[prev_len++], delay, sizeof(packet));
|
||||
}
|
||||
|
||||
int send_delayed()
|
||||
int send_delayed(void)
|
||||
{
|
||||
uint8_t offset;
|
||||
int ret;
|
||||
|
||||
Reference in New Issue
Block a user