Hi Pawel, On 02/23/2015 03:09 PM, Pawel Wodkowski wrote: > Declaration for function pointer should be > typedef ret_type (*type_name)(args...) > not > typedef ret_type (type_name)(args...) > > although compiler treat both of them the same, the static analysis tool > like klocwork complain about that.
Can you give some details about the reason why klocwork is complaining? Looking at the C11 standard, it seems that this syntax is legal. Please see EXAMPLE 4, page 156 of: http://www.open-std.org/JTC1/SC22/WG14/www/docs/n1570.pdf Regards, Olivier