#include<stdio.h>#define CAT_HELP(A,B) A##B#define CAT(A,B) CAT_HELP(A,B)#define NAME(ID) CAT(bc,ID)#define FUNC_NAME(ID) CAT(NAME(ID),_handler)// void CAT(NAME(module_1),_handler)() // Changing to this makes the error disappearvoidFUNC_NAME(module_1)(){printf("Hello\n");}intmain(){bcmodule_1_handler();}
Cppcheck outputs:
This might be related to this issue: https://trac.cppcheck.net/ticket/10783