printf מוזר
אני מנסה להדפיס באמצעות printf (הקומפיילר gcc סביבת העובדה eclipse מעל לינוקס)
printf(" >>> %d sent %d bytes to %d : \"%s\", left bytes to write: %d\n",
getpid(), (int)nbytes, folderHandle->id, msg, (strlen(msg) + 1 - nbytes));
בצורה מאוד מוזרה יש לי אזהרה על הפרמטר השישי...רק שהוא לא קיים...
./main.c:464:4: warning: format ‘%d’ expects argument of type ‘int’, but argument 6 has type ‘long unsigned int’ [-Wformat]
מישהו מכיר על באג כזה? שמע? אולי יש לי איזה טעות בפורמט שנתתי לו?
אני מנסה להדפיס באמצעות printf (הקומפיילר gcc סביבת העובדה eclipse מעל לינוקס)
printf(" >>> %d sent %d bytes to %d : \"%s\", left bytes to write: %d\n",
getpid(), (int)nbytes, folderHandle->id, msg, (strlen(msg) + 1 - nbytes));
בצורה מאוד מוזרה יש לי אזהרה על הפרמטר השישי...רק שהוא לא קיים...
./main.c:464:4: warning: format ‘%d’ expects argument of type ‘int’, but argument 6 has type ‘long unsigned int’ [-Wformat]
מישהו מכיר על באג כזה? שמע? אולי יש לי איזה טעות בפורמט שנתתי לו?