下記のwarningをなくするコードはありますか?
..#include <pthread.h>
..#include <stdio.h>
..#include <stdlib.h>
..#include <unistd.h>
..#include <errno.h>
if(error=pthread_attr_init(tattr)){
printf("Attribute initialization failed with error %s\n",strerror(error));
//warning: implicit declaration of function ‘strerror’ [-Wimplicit-function-declaration]
お手数ですが宜しくお願いします。
}
include文が見出し化して見づらいです、複数行のコードはMarkdownの```で囲って下さい
回答1件
あなたの回答
tips
プレビュー