Fix C function to comply with improved -Wstrict-prototypes

Bug: b/229072413
Change-Id: Id02a4c92693858864fdadfafdbdd98ed78f1c83e
Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/258790
Reviewed-by: Mirko Bonadei <mbonadei@webrtc.org>
Reviewed-by: Per Åhgren <peah@webrtc.org>
Commit-Queue: Artem Titov <titovartem@webrtc.org>
Cr-Commit-Position: refs/heads/main@{#36539}
This commit is contained in:
Artem Titov 2022-04-13 13:44:39 +02:00 committed by WebRTC LUCI CQ
parent a768f5256a
commit a19f0c7409

View file

@ -21,7 +21,7 @@ static const int kValidRates[] = { 8000, 16000, 32000, 48000 };
static const size_t kRatesSize = sizeof(kValidRates) / sizeof(*kValidRates);
static const int kMaxFrameLengthMs = 30;
VadInst* WebRtcVad_Create() {
VadInst* WebRtcVad_Create(void) {
VadInstT* self = (VadInstT*)malloc(sizeof(VadInstT));
self->init_flag = 0;