mirror of
https://github.com/mimblewimble/grin.git
synced 2025-01-21 03:21:08 +03:00
secp256k1zkp: Fix several warnings from implicitly declared function 'memcpy' (#42)
Added includes for <string.h> to explicitly declare 'memcpy' where needed. This message is typical of messages suppressed by declaring 'memcpy': warning: In file included from depend/secp256k1-zkp/src/secp256k1.c:14:0: warning: depend/secp256k1-zkp/src/ecmult_impl.h: In function ‘secp256k1_ecmult_context_clone’: warning: depend/secp256k1-zkp/src/ecmult_impl.h:186:9: warning: implicit declaration of function ‘memcpy’ [-Wimplicit-function-declaration] warning: memcpy(dst->pre_g, src->pre_g, size); warning: ^~~~~~
This commit is contained in:
parent
5886d551c2
commit
ca496ee101
2 changed files with 5 additions and 0 deletions
|
@ -14,6 +14,9 @@
|
||||||
#ifdef USE_ECMULT_STATIC_PRECOMPUTATION
|
#ifdef USE_ECMULT_STATIC_PRECOMPUTATION
|
||||||
#include "ecmult_static_context.h"
|
#include "ecmult_static_context.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#include <string.h>
|
||||||
|
|
||||||
static void secp256k1_ecmult_gen_context_init(secp256k1_ecmult_gen_context *ctx) {
|
static void secp256k1_ecmult_gen_context_init(secp256k1_ecmult_gen_context *ctx) {
|
||||||
ctx->prec = NULL;
|
ctx->prec = NULL;
|
||||||
}
|
}
|
||||||
|
|
|
@ -11,6 +11,8 @@
|
||||||
#include "scalar.h"
|
#include "scalar.h"
|
||||||
#include "ecmult.h"
|
#include "ecmult.h"
|
||||||
|
|
||||||
|
#include <string.h>
|
||||||
|
|
||||||
/* optimal for 128-bit and 256-bit exponents. */
|
/* optimal for 128-bit and 256-bit exponents. */
|
||||||
#define WINDOW_A 5
|
#define WINDOW_A 5
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue