diff options
author | iphydf <iphydf@users.noreply.github.com> | 2020-05-02 00:34:13 +0100 |
---|---|---|
committer | iphydf <iphydf@users.noreply.github.com> | 2020-05-02 22:00:09 +0100 |
commit | f8ab32aaa4efce2c9a310a14d10b19fb8544cfd9 (patch) | |
tree | 4dbc49882d6af0954c533b2482b2100d312d2bc7 /other/cpufeatures.c | |
parent | 2570ddcb17fdf5bea56c6bc1c5c2d04ba2068ee7 (diff) |
Add a check that we don't have any unused functions.
This check puts all of our code in a C++ anonymous namespace, which is
effectively making all functions `static`. This allows the compiler to
determine that a function is unused, so we can delete it.
Diffstat (limited to 'other/cpufeatures.c')
-rw-r--r-- | other/cpufeatures.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/other/cpufeatures.c b/other/cpufeatures.c index 3da06e58..38c97059 100644 --- a/other/cpufeatures.c +++ b/other/cpufeatures.c | |||
@@ -3,4 +3,4 @@ | |||
3 | #include ANDROID_CPU_FEATURES | 3 | #include ANDROID_CPU_FEATURES |
4 | #endif | 4 | #endif |
5 | 5 | ||
6 | extern int unused_declaration; | 6 | typedef int unused_declaration; |