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 /toxencryptsave | |
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 'toxencryptsave')
-rw-r--r-- | toxencryptsave/crypto_pwhash_scryptsalsa208sha256/sse/pwhash_scryptsalsa208sha256_sse.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/toxencryptsave/crypto_pwhash_scryptsalsa208sha256/sse/pwhash_scryptsalsa208sha256_sse.c b/toxencryptsave/crypto_pwhash_scryptsalsa208sha256/sse/pwhash_scryptsalsa208sha256_sse.c index 7f015238..38a536a6 100644 --- a/toxencryptsave/crypto_pwhash_scryptsalsa208sha256/sse/pwhash_scryptsalsa208sha256_sse.c +++ b/toxencryptsave/crypto_pwhash_scryptsalsa208sha256/sse/pwhash_scryptsalsa208sha256_sse.c | |||
@@ -398,4 +398,4 @@ escrypt_kdf_sse(escrypt_local_t * local, | |||
398 | #endif | 398 | #endif |
399 | 399 | ||
400 | /* ISO C requires a translation unit to contain at least one declaration */ | 400 | /* ISO C requires a translation unit to contain at least one declaration */ |
401 | extern int non_empty_tu_decl; | 401 | typedef int non_empty_tu_decl; |