<p dir="ltr"><br>
12 марта 2014 г. 22:18 пользователь <<a href="mailto:noselasd@fiane.dyndns.org">noselasd@fiane.dyndns.org</a>> написал:<br>
><br>
> On 03/12/2014 05:49 PM, Alexander Chemeris wrote:<br>
><br>
>>>> +#include <osmocom/core/logging.h><br>
>>>> +<br>
>>>> +struct log_info fake_log_info = {};<br>
>>>> +<br>
>>>>   struct test_case {<br>
>>>>        const uint8_t *input;<br>
>>>>        const uint16_t input_length;<br>
>>>> @@ -278,6 +282,9 @@ int main(int argc, char** argv)<br>
>>>>        int nchars;<br>
>>>>        char result[256];<br>
>>>><br>
>>>> +     /* Fake logging. */<br>
>>>> +     osmo_init_logging(&fake_log_info);<br>
>>><br>
>>><br>
>>> osmo_init_logging() is declared in include/osmocom/core/application.h<br>
>><br>
>><br>
>> Fixed, thanks.<br>
>><br>
>> I don't like this fact that in C it's possible to use a non-defined<br>
>> function and it's just a warning.<br>
><br>
><br>
> gcc and clang can error on it with the flag<br>
> -Werror=implicit-function-declaration</p>
<p dir="ltr">Should we add this to our default Makefiles? Any opinions? </p>
<p dir="ltr">Please excuse typos. Written with a touchscreen keyboard.</p>
<p dir="ltr">--<br>
Regards,<br>
Alexander Chemeris<br>
CEO/Founder Fairwaves LLC<br>
<a href="https://fairwaves.co">https://fairwaves.co</a><br>
</p>