lkml.org 
[lkml]   [2023]   [Sep]   [19]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRe: (subset) [PATCH] leds: pca955x: fix -Wvoid-pointer-to-enum-cast warning
Date
On Wed, 16 Aug 2023 19:37:52 +0000, Justin Stitt wrote:
> When building with clang 18 I see the following warning:
> | drivers/leds/leds-pca955x.c:487:15: warning: cast to smaller integer
> | type 'enum pca955x_type' from 'const void *' [-Wvoid-pointer-to-enum-cast]
> | 487 | chip_type = (enum pca955x_type)md;
>
> This is due to the fact that `md` is a void* while `enum pca995x_type` has the
> size of an int.
>
> [...]

Applied, thanks!

[1/1] leds: pca955x: fix -Wvoid-pointer-to-enum-cast warning
commit: 0e2e05099162c089a9b4dac563ae71b4c01a5f8b

--
Lee Jones [李琼斯]

\
 
 \ /
  Last update: 2023-09-19 16:56    [W:0.085 / U:0.724 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site