我最近處理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