monokrome a écrit a écrit :
Code :
- while (fgets(buffer, 256, statefile) != NULL) {
- if ( right = strstr(buffer, "prog" )) {
- ...
- }
|
voila, dans un prog j'ai la ligne la (celle avec le if) qui me génere un warning, mais je comprends pas pourquoi..une recherche google & forum ne m'a pas apporté de solution.
Code :
- gcc -g -Wall -o seti seti.c
- ...
- seti.c: In function `read_workunit_infos':
- seti.c:48: warning: suggest parentheses around assignment used as truth value
|
voila, gcc 2.95.3 mais ca a pas d'importance je pense.
je débute en c et j'aimerais faire un truc propre, sans warnings
merci.
|