天天看點

gcc 編譯warning 去除

1. warning: incompatible implicit declaration of built-in function 'strlen'

解決方案: #include<string.h>

2. client.c:61: warning: passing argument 1 of 'snprintf' from incompatible pointer type

解決方案: 資料類型定義錯誤,是char 而不是 int

繼續閱讀