new warning in libmisc/capture

Joel Sherrill joel at rtems.org
Mon Jun 12 00:09:23 UTC 2017


Hi

Not sure the best way to fix this warning that occurs in 161 BSPs. :(

    161
../../../../../../rtems/c/src/../../cpukit/libmisc/capture/rtems-trace-buffer-vars.c:22:12:
warning: duplicate 'const' declaration specifier
[-Wduplicate-decl-specifier]

The code is

const char const* __rtld_trace_names[1] __attribute__ ((weak));

I am guessing that the intent was to put the second const on the right
hand side of the *. Or not to have a second one.

Thoughts?

Thanks.

--joel
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rtems.org/pipermail/devel/attachments/20170611/6ef728be/attachment.html>


More information about the devel mailing list