summaryrefslogtreecommitdiffstats
path: root/ffi.c
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2017-06-18 08:10:59 -0700
committerKaz Kylheku <kaz@kylheku.com>2017-06-18 10:14:34 -0700
commit1e35fa11db662e6237e76f800a9294809bcb1660 (patch)
tree9ccd18d3d8e3330e9a3c93ab4fd5a73d431632b7 /ffi.c
parent942232043a17025d95619c4414b1146094085734 (diff)
downloadtxr-1e35fa11db662e6237e76f800a9294809bcb1660.tar.gz
txr-1e35fa11db662e6237e76f800a9294809bcb1660.tar.bz2
txr-1e35fa11db662e6237e76f800a9294809bcb1660.zip
mpi: enforce testing of some return values.
Using a feature of GCC, we mark some functions with the warn_unused_result attribute. Specifically, those functions which could return the MP_TOOBIG overflow error. * mpi/mpi.h (mp_nign): New macro. (mp_init_size, mp_add_d, mp_sub_d, mp_mul_d, mp_mul_2, mp_div_d, mp_div_2, mp_expt_d, mp_add, mp_sub, mp_mul, mp_mul_2d, mp_sqr, mp_expt, mp_2expt, mp_sqrt, mp_addmod, mp_submod, mp_mulmod, mp_sqrmod, mp_exptmod, mp_exptmod_d, mp_lcm, mp_xgcd, mp_invmod, mp_trunc_comp, mp_trunc, mp_shift, mp_to_double, mp_read_signed_bin, mp_read_unsigned_bin, mp_read_radix): Functions attributed with unused result warning.
Diffstat (limited to 'ffi.c')
0 files changed, 0 insertions, 0 deletions