0
const char *p;
p="curl -d \'{\"switch\": \"00:00:3a:46:3b:8d:df:40\", \"name\":\"flow\", \"cookie\":\"0\",
\"priority\":\"32768\", \"src-ip\":\""+p+"\",\"active\":\"true\", \"actions\":\"output=all\"}\'
http://54.68.77.30:8080/wm/staticflowentrypusher/json";
system(p);
錯誤:忽略 '系統',具有屬性warn_unused_result [-Werror =未使用-結果] 系統宣佈的返回值(p );忽略返回值warn_unused_result --- GCC編譯的Linux
有人可以幫我解決這個問題嗎?