Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork33.7k
Closed
Description
Anmp_int structure is usable only ifmp_init() returnsMP_OKAY;mp_init() may returnMP_MEM if it fails to allocate memory (seehttps://github.com/libtom/libtommath/blob/v1.2.0/bn_mp_init.c#L12).
mp_init() must be checked to avoid a warning when compiling against standalone libtommath headers (rather than Tcl-bundled libtommath):
./Modules/_tkinter.c:908:5: warning: ignoring return value of function declared with 'warn_unused_result' attribute [-Wunused-result] mp_init(&bigValue); ^~~~~~~ ~~~~~~~~~1 warning generated.