[PATCH] Fix bunch of printf warnings

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/.

Jan Engelhardt jengelh at inai.de
Sat Oct 25 15:41:12 UTC 2014


On Saturday 2014-10-25 15:42, Holger Hans Peter Freyther wrote:
>int foo()
>{
>        unsigned int foo = 1212323123123;
>        size_t bla = 2;
>
>        typeof(foo - bla) k;
>        k = 3;
>}
>
>clang-3.4 -Xclang -ast-dump -fsyntax-only foo.c
>    | `-VarDecl 0x99464f0 <col:2, col:20> k 'typeof (foo - bla)':'unsigned int'
>
>If I read this correctly the type is 'unsigned int' with clang?

You seem to be compiling in LP32 mode.
I get unsigned long -- which is what size_t amounts to on Linux/LP64.




More information about the OpenBSC mailing list