This is merely a historical archive of years 2008-2021, before the migration to mailman3.
A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/OpenBSC@lists.osmocom.org/.
noselasd at fiane.dyndns.org noselasd at fiane.dyndns.orgOn 03/12/2014 05:49 PM, Alexander Chemeris wrote:
>>> +#include <osmocom/core/logging.h>
>>> +
>>> +struct log_info fake_log_info = {};
>>> +
>>> struct test_case {
>>> const uint8_t *input;
>>> const uint16_t input_length;
>>> @@ -278,6 +282,9 @@ int main(int argc, char** argv)
>>> int nchars;
>>> char result[256];
>>>
>>> + /* Fake logging. */
>>> + osmo_init_logging(&fake_log_info);
>>
>> osmo_init_logging() is declared in include/osmocom/core/application.h
>
> Fixed, thanks.
>
> I don't like this fact that in C it's possible to use a non-defined
> function and it's just a warning.
gcc and clang can error on it with the flag
-Werror=implicit-function-declaration