[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: Address MISRA C:2012 Rule 8.4
One further question is whether functions under 'xen/common/coverage/gcov_base.c' should gaina declaration in 'gcov.h' or not, as they exist just for the purpose ofbeing referencedby autogenerated profiling code. I see no reason why they shouldn't, butthey can also be safely deviated, since they are not called by Xen code.Imo it should be the compiler to provide a prototype for these (much like it does for builtins), thus ensuring that an implementation actually matches the compiler's expectations. Yet afaics it doesn't. Jan Then it's perhaps best to deviate them. -- Nicola Vetrini, BSc Software Engineer, BUGSENG srl (https://bugseng.com)
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |