RE: [1/1] rt-tests: cyclictest: Suppress unused parameter warnings

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

 



> WARNING: __always_unused or __maybe_unused is preferred over
> __attribute__((__unused__))

I tried the `__maybe_unused` using gcc 12, but it didn't work.

It looks like the `__maybe_unused` attribute is only available in C23 and later
https://en.cppreference.com/w/c/language/attributes/maybe_unused

For backward compatibility, maybe we shall keep the existing `__attribute__((__unused__))`.

Regards
Tan En De





[Index of Archives]     [RT Stable]     [Kernel Newbies]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux