Joel Sherrill commented on a discussion on bsps/shared/grlib/l2c/l2c.c: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/1605#note_163061 > #include <grlib/l2c.h> > #include <grlib/grlib_impl.h> > > -#if RTEMS_INTERRUPT_LOCK_NEEDS_OBJECT > -extern rtems_interrupt_lock leon3_l2c_lock; > -#endif Start with you do not need to be concerned about the -Wredundant-decls warning. It primarily points out places where there are multiple declarations seen within a compilation unit. This is often caused by a header and C file both having a declaration as is the case here where it is also in leon3.h. It can also be caused by having the declaration after the actual function. It has caught places where a header file had no inclusion guards. Duplication is bad and this warning finds one source of it. Fixing these is not making any functional changes -- just clean up. -- View it on GitLab: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/1605#note_163061 You're receiving this email because of your account on gitlab.rtems.org. Unsubscribe from this thread: https://gitlab.rtems.org/-/namespace/49/sent_notifications/6-1td8gv4htv8r8yt1i8brtxckb-1d/unsubscribe | Manage all notifications: https://gitlab.rtems.org/-/profile/notifications | Help: https://gitlab.rtems.org/help
_______________________________________________ bugs mailing list [email protected] http://lists.rtems.org/mailman/listinfo/bugs
