Re: [PATCH] [libgpiod] tools: move function attributes to the header file

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



2018-02-20 17:57 GMT+01:00 Clemens Gruber <clemens.gruber@xxxxxxxxxxxx>:
> The attributes should be in the definition in the header file.
> Otherwise, the noreturn attribute seems to have no effect and GCC
> emits several Wimplicit-fallthrough warnings when compiling libgpiod.
> This patch fixes those warnings.
>
> Signed-off-by: Clemens Gruber <clemens.gruber@xxxxxxxxxxxx>
> ---
>  src/tools/tools-common.c | 6 ++----
>  src/tools/tools-common.h | 5 +++--
>  2 files changed, 5 insertions(+), 6 deletions(-)
>

Hi Clemens,

I'm not getting any warning. What GCC are you using?

Bart
--
To unsubscribe from this list: send the line "unsubscribe linux-gpio" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Linux SPI]     [Linux Kernel]     [Linux ARM (vger)]     [Linux ARM MSM]     [Linux Omap]     [Linux Arm]     [Linux Tegra]     [Fedora ARM]     [Linux for Samsung SOC]     [eCos]     [Linux Fastboot]     [Gcc Help]     [Git]     [DCCP]     [IETF Announce]     [Security]     [Linux MIPS]     [Yosemite Campsites]

  Powered by Linux