Skip to content

Instantly share code, notes, and snippets.

@tgerring
Created December 27, 2020 14:55
Show Gist options
  • Save tgerring/51ee2f1aeedbebe8f53276d308afc814 to your computer and use it in GitHub Desktop.
Save tgerring/51ee2f1aeedbebe8f53276d308afc814 to your computer and use it in GitHub Desktop.
make BLS_ETH=1 lib/libbls384_256.a
g++ -g3 -Wall -Wextra -Wformat=2 -Wcast-qual -Wcast-align -Wwrite-strings -Wfloat-equal -Wpointer-arith -Wundef -I include -I test -fomit-frame-pointer -DNDEBUG -fno-stack-protector -Ofast -DMCL_USE_VINT -DMCL_DONT_USE_OPENSSL -fPIC -std=c++11 -I/home/pi/dev/bls/../mcl/include -DBLS_ETH -c src/bls_c384_256.cpp -o obj/bls_c384_256.o -MMD -MP -MF obj/bls_c384_256.d
In file included from src/bls_c384_256.cpp:3:
src/bls_c_impl.hpp: In function ‘const mclBnG1* cast(const G1*)’:
src/bls_c_impl.hpp:155:73: warning: cast from ‘const G1*’ {aka ‘const mcl::EcT<mcl::FpT<mcl::bn::local::FpTag, 384> >*’} to ‘const mclBnG1*’ increases required alignment of target type [-Wcast-align]
static inline const mclBnG1 *cast(const G1* x) { return (const mclBnG1*)x; }
^
src/bls_c_impl.hpp: In function ‘const mclBnG2* cast(const G2*)’:
src/bls_c_impl.hpp:156:73: warning: cast from ‘const G2*’ {aka ‘const mcl::EcT<mcl::Fp2T<mcl::FpT<mcl::bn::local::FpTag, 384> > >*’} to ‘const mclBnG2*’ increases required alignment of target type [-Wcast-align]
static inline const mclBnG2 *cast(const G2* x) { return (const mclBnG2*)x; }
^
src/bls_c_impl.hpp: In function ‘int blsMultiVerify(const blsSignature*, const blsPublicKey*, const void*, size_t, const void*, size_t, size_t, int)’:
src/bls_c_impl.hpp:341:58: warning: cast from ‘mcl::bn::GT*’ {aka ‘mcl::Fp12T<mcl::FpT<mcl::bn::local::FpTag, 384> >*’} to ‘mclBnGT*’ increases required alignment of target type [-Wcast-align]
th[i] = std::thread(blsMultiVerifySub, (mclBnGT*)&et[i], (blsSignature*)&aggSigt[i], sigVec, pubVec, msg, msgSize, rp, randSize, m);
^
src/bls_c_impl.hpp:341:86: warning: cast from ‘mcl::bn::G2*’ {aka ‘mcl::EcT<mcl::Fp2T<mcl::FpT<mcl::bn::local::FpTag, 384> > >*’} to ‘blsSignature*’ increases required alignment of target type [-Wcast-align]
th[i] = std::thread(blsMultiVerifySub, (mclBnGT*)&et[i], (blsSignature*)&aggSigt[i], sigVec, pubVec, msg, msgSize, rp, randSize, m);
^
src/bls_c_impl.hpp:360:32: warning: cast from ‘mcl::bn::GT*’ {aka ‘mcl::Fp12T<mcl::FpT<mcl::bn::local::FpTag, 384> >*’} to ‘mclBnGT*’ increases required alignment of target type [-Wcast-align]
blsMultiVerifySub((mclBnGT*)&e, (blsSignature*)&aggSig, sigVec, pubVec, msg, msgSize, rp, randSize, n);
^
src/bls_c_impl.hpp:360:51: warning: cast from ‘mcl::bn::G2*’ {aka ‘mcl::EcT<mcl::Fp2T<mcl::FpT<mcl::bn::local::FpTag, 384> > >*’} to ‘blsSignature*’ increases required alignment of target type [-Wcast-align]
blsMultiVerifySub((mclBnGT*)&e, (blsSignature*)&aggSig, sigVec, pubVec, msg, msgSize, rp, randSize, n);
^~~~~~
src/bls_c_impl.hpp:362:46: warning: cast from ‘mcl::bn::GT*’ {aka ‘mcl::Fp12T<mcl::FpT<mcl::bn::local::FpTag, 384> >*’} to ‘const mclBnGT*’ increases required alignment of target type [-Wcast-align]
return blsMultiVerifyFinal((const mclBnGT*)&e, (const blsSignature*)&aggSig);
^
src/bls_c_impl.hpp:362:71: warning: cast from ‘mcl::bn::G2*’ {aka ‘mcl::EcT<mcl::Fp2T<mcl::FpT<mcl::bn::local::FpTag, 384> > >*’} to ‘const blsSignature*’ increases required alignment of target type [-Wcast-align]
return blsMultiVerifyFinal((const mclBnGT*)&e, (const blsSignature*)&aggSig);
^~~~~~
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment