7 years, 3 months ago.

Receiving warnings while compiling from mBed code

I currently compile offline using mBed Release 128. While compileing I receive Warnings from the files 'ticker.h' and 'equeue_mbed.cpp', both refering to deprecated code segments.

Is this already fixed in a new version of mBed or will this be fixed sometime in the near future? Currently I don't think this is a problem to me, but it certainly is an eyesore, at least to me ;)

And yes, before someone asks, I use Ticker /Timeout attaches as appreciated: ticker.attach( callback( obj, &Method ), t );

Warning in 'Ticker.h' at 122 mbed::Callback<R()>::Callback(volatile T*, R (*)(volatile T*)) [with T = int; R = void]' is deprecated: Arguments to callback have been reordered to Callback(func, arg) [since mbed-os-5.1] [-Wdeprecated-declarations]

Warning in 'equeue_mbed.cpp' at 124 'void mbed::Ticker::attach_us(T*, M, timestamp_t) [with T = volatile int; M = void (*)(volatile int*); timestamp_t = long unsigned int]' is deprecated: The attach_us function does not support cv-qualifiers. Replaced by attach_us(callback(obj, method), t). [since mbed-os-5.1] [-Wdeprecated-declarations]

Be the first to answer this question.