On Tue, Mar 18, 2025, at 10:04 AM, Mark Wielaard wrote:
> In some other situations that is "solved" with marking the function
> arguments with __attribute__ ((unused)) (which isn't true for x86_64,
> but the compiler is fine with that).
The other hack (that I'd go with, if there's no style objections)
is a (void)arg; no-op statement in the 'return 0' branch of the ifdef.
It seems cleaner to me since it doesn't mark the arg unused
for both branches.
--
All the best,
Serhei
- [PATCH 01/13] libebl [1/13]: api for perf register handling... Serhei Makarov
- Re: [PATCH 01/13] libebl [1/13]: api for perf register... Serhei Makarov
- Re: [PATCH 01/13] libebl [1/13]: api for perf regi... Mark Wielaard
- Re: [PATCH 01/13] libebl [1/13]: api for perf ... Serhei Makarov
- Re: [PATCH 01/13] libebl [1/13]: api for perf register... Mark Wielaard
- Re: [PATCH 01/13] libebl [1/13]: api for perf regi... Serhei Makarov
