[GH-ISSUE #2693] Unused functions in secp256k1 src tree #1742

Closed
opened 2026-10-15 04:23:56 +07:00 by bsakaguchi · 0 comments
Owner

Originally created by @magnumripper on GitHub (Aug 21, 2017).
Original GitHub issue: https://github.com/openwall/john/issues/2693

Originally assigned to: @kholia on GitHub.

https://circleci.com/gh/magnumripper/JohnTheRipper/2998#tests/containers/0

In file included from secp256k1.c:16:0:
ecmult_gen_impl.h:94:12: warning: 'secp256k1_ecmult_gen_context_is_built' defined but not used [-Wunused-function]
 static int secp256k1_ecmult_gen_context_is_built(const secp256k1_ecmult_gen_context* ctx) {
            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from secp256k1.c:14:0:
ecmult_impl.h:216:12: warning: 'secp256k1_ecmult_context_is_built' defined but not used [-Wunused-function]
 static int secp256k1_ecmult_context_is_built(const secp256k1_ecmult_context *ctx) {
            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from secp256k1.c:13:0:
group_impl.h:686:12: warning: 'secp256k1_gej_has_quad_y_var' defined but not used [-Wunused-function]
 static int secp256k1_gej_has_quad_y_var(const secp256k1_gej *a) {
            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
group_impl.h:361:13: warning: 'secp256k1_gej_add_var' defined but not used [-Wunused-function]
 static void secp256k1_gej_add_var(secp256k1_gej *r, const secp256k1_gej *a, const secp256k1_gej *b, secp256k1_fe *rzr) {
             ^~~~~~~~~~~~~~~~~~~~~
group_impl.h:267:12: warning: 'secp256k1_gej_is_valid_var' defined but not used [-Wunused-function]
 static int secp256k1_gej_is_valid_var(const secp256k1_gej *a) {
            ^~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from secp256k1.c:13:0:
group_impl.h:129:13: warning: 'secp256k1_ge_set_all_gej_var' defined but not used [-Wunused-function]
 static void secp256k1_ge_set_all_gej_var(secp256k1_ge *r, const secp256k1_gej *a, size_t len, const secp256k1_callback *cb) {
             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
group_impl.h:113:13: warning: 'secp256k1_ge_set_gej_var' defined but not used [-Wunused-function]
 static void secp256k1_ge_set_gej_var(secp256k1_ge *r, secp256k1_gej *a) {
             ^~~~~~~~~~~~~~~~~~~~~~~~

Not sure what to do with them - either define out with #if 0..#endif or actually deleting them from the source files?

Originally created by @magnumripper on GitHub (Aug 21, 2017). Original GitHub issue: https://github.com/openwall/john/issues/2693 Originally assigned to: @kholia on GitHub. https://circleci.com/gh/magnumripper/JohnTheRipper/2998#tests/containers/0 ``` In file included from secp256k1.c:16:0: ecmult_gen_impl.h:94:12: warning: 'secp256k1_ecmult_gen_context_is_built' defined but not used [-Wunused-function] static int secp256k1_ecmult_gen_context_is_built(const secp256k1_ecmult_gen_context* ctx) { ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from secp256k1.c:14:0: ecmult_impl.h:216:12: warning: 'secp256k1_ecmult_context_is_built' defined but not used [-Wunused-function] static int secp256k1_ecmult_context_is_built(const secp256k1_ecmult_context *ctx) { ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from secp256k1.c:13:0: group_impl.h:686:12: warning: 'secp256k1_gej_has_quad_y_var' defined but not used [-Wunused-function] static int secp256k1_gej_has_quad_y_var(const secp256k1_gej *a) { ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ group_impl.h:361:13: warning: 'secp256k1_gej_add_var' defined but not used [-Wunused-function] static void secp256k1_gej_add_var(secp256k1_gej *r, const secp256k1_gej *a, const secp256k1_gej *b, secp256k1_fe *rzr) { ^~~~~~~~~~~~~~~~~~~~~ group_impl.h:267:12: warning: 'secp256k1_gej_is_valid_var' defined but not used [-Wunused-function] static int secp256k1_gej_is_valid_var(const secp256k1_gej *a) { ^~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from secp256k1.c:13:0: group_impl.h:129:13: warning: 'secp256k1_ge_set_all_gej_var' defined but not used [-Wunused-function] static void secp256k1_ge_set_all_gej_var(secp256k1_ge *r, const secp256k1_gej *a, size_t len, const secp256k1_callback *cb) { ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ group_impl.h:113:13: warning: 'secp256k1_ge_set_gej_var' defined but not used [-Wunused-function] static void secp256k1_ge_set_gej_var(secp256k1_ge *r, secp256k1_gej *a) { ^~~~~~~~~~~~~~~~~~~~~~~~ ``` Not sure what to do with them - either define out with `#if 0`..`#endif` or actually deleting them from the source files?
bsakaguchi 2026-10-15 04:23:56 +07:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
openwall/john#1742
No description provided.