summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndroid Build Coastguard Worker <android-build-coastguard-worker@google.com>2023-12-15 00:38:06 +0000
committerAndroid Build Coastguard Worker <android-build-coastguard-worker@google.com>2023-12-15 00:38:06 +0000
commita73aba1b8f0c5d92b14824a5bc36bc780ae181cc (patch)
tree75903f9b5188f7ddb8e0f06971bf6b2fdea01020
parente95ffd84d7c3131f283eb5a7635da03a62852e01 (diff)
parent4320635cc13e26c53beafe7db7cd6f9cfa964267 (diff)
downloadapf-android14-qpr2-release.tar.gz
Change-Id: Ib7c38a33f366375cbecc43dc401ef8201e529111
-rw-r--r--v5/Android.bp1
-rw-r--r--v5/apf_interpreter.c4
-rw-r--r--v5/apf_interpreter.h2
3 files changed, 4 insertions, 3 deletions
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 @@ cc_defaults {
"-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 @@ extern void APF_TRACE_HOOK(uint32_t pc, const uint32_t* regs, const uint8_t* pro
// 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 @@ extern "C" {
* 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.