Re: [PATCH] ASoC: rt1011: Mark format integer literals as unsigned

2019-06-06 Thread Nathan Chancellor
On Thu, Jun 06, 2019 at 11:50:10AM -0700, Nick Desaulniers wrote: > On Wed, Jun 5, 2019 at 10:13 PM Nathan Chancellor > wrote: > > > > Clang warns: > > > > sound/soc/codecs/rt1011.c:1291:12: warning: integer literal is too large > > to be represented in type 'long', interpreting as 'unsigned long'

Re: [PATCH] ASoC: rt1011: Mark format integer literals as unsigned

2019-06-06 Thread Nick Desaulniers
On Wed, Jun 5, 2019 at 10:13 PM Nathan Chancellor wrote: > > Clang warns: > > sound/soc/codecs/rt1011.c:1291:12: warning: integer literal is too large > to be represented in type 'long', interpreting as 'unsigned long' per > C89; this literal will have type 'long long' in C99 onwards > [-Wc99-comp

[PATCH] ASoC: rt1011: Mark format integer literals as unsigned

2019-06-05 Thread Nathan Chancellor
Clang warns: sound/soc/codecs/rt1011.c:1291:12: warning: integer literal is too large to be represented in type 'long', interpreting as 'unsigned long' per C89; this literal will have type 'long long' in C99 onwards [-Wc99-compat] format = 2147483648; /* 2^24 * 128 */