Snap for 11220357 from 4320635cc13e26c53beafe7db7cd6f9cfa964267 to 24Q1-release
Change-Id: Ib7c38a33f366375cbecc43dc401ef8201e529111
diff --git a/v5/Android.bp b/v5/Android.bp
index 6623e64..23bfa9c 100644
--- a/v5/Android.bp
+++ b/v5/Android.bp
@@ -25,6 +25,7 @@
"-Wall",
"-Werror",
"-Werror=implicit-fallthrough",
+ "-Werror=strict-prototypes",
"-Wnullable-to-nonnull-conversion",
"-Wsign-compare",
"-Wsign-conversion",
diff --git a/v5/apf_interpreter.c b/v5/apf_interpreter.c
index 9e9317b..9284a45 100644
--- a/v5/apf_interpreter.c
+++ b/v5/apf_interpreter.c
@@ -45,8 +45,8 @@
// superfluous ">= 0" with unsigned expressions generates compile warnings.
#define ENFORCE_UNSIGNED(c) ((c)==(uint32_t)(c))
-uint32_t apf_version() {
- return 20231211;
+uint32_t apf_version(void) {
+ return 20231214;
}
int apf_run(void* ctx, uint8_t* const program, const uint32_t program_len,
diff --git a/v5/apf_interpreter.h b/v5/apf_interpreter.h
index 9954d37..2f2d904 100644
--- a/v5/apf_interpreter.h
+++ b/v5/apf_interpreter.h
@@ -27,7 +27,7 @@
* Returns the max version of the APF instruction set supported by apf_run().
* APFv6 is a superset of APFv4. APFv6 interpreters are able to run APFv4 code.
*/
-uint32_t apf_version();
+uint32_t apf_version(void);
/**
* Allocates a buffer for the APF program to build a reply packet.