我最近处理an error that should have easily been realized with a simple compiler warning。 有没有人知道如何获得编译器警告显示在Ubuntu上编译与make JUCE项目? 我尝试: make -Wall从gcc/gnu Warning Options docs - >无变化 make V=1在Makefile中评论 -
我有以下代码: int atoi(const char * str)
{
int ret = 0, i;
if (str) {
for (i = 0; str[i] != '\0'; i++)
if (str[i] >= '0' && str[i] <= '9')
ret = ret * 10 + str[i] - '0'
GCC 6.3的手册页说: --wrap=symbol
Use a wrapper function for symbol. Any undefined reference to
symbol will be resolved to "__wrap_symbol". Any undefined
reference to "__real_symbol" wi