Text  |   XML   |   Visible Warnings:

Pvm : Pvm analysis 1 : Useless Assignment  at pvmfrag.c:219

Categories: LANG.STRUCT.UA
Warning ID: 2646.2690
Similar Warnings: 2646.2691
Procedure: fr_snew
Trace: View
Modified: Wed Sep 2 12:42:35 2009   show details
 
Priority: None
State: None
Finding: None
Owner: None
  edit properties

Legend [ X ]
Warning Location
Contributes
Parse Error
Other Warning
Two or More Loop Iterations
On Execution Path
Comment
Macro
Preprocessor
Include
Keyword
Preprocessed Away

Source  |  Language: C Hide Legend     
LineSource
  /u1/paul/SATE/2010/c/pvm/pvm3/src/pvmfrag.c
  Enter fr_snew
209 struct frag * 
210 fr_snew(cp, len) 
211         char *cp;       /* buffer */ 
212         int len;        /* buffer size */ 
213 {
214         struct frag *fp;
215  
216         if (!(fp = frag_get_header()))
217                 goto oops;
218  
219         fp->fr_link = fp->fr_rlink = 0;     /* Useless Assignment */
220         fp->fr_dat = fp->fr_buf = cp;
221         fp->fr_max = fp->fr_len = len;
222         fp->fr_u.ref = 1;
223         fp->fr_u.dab = 0;
224         fp->fr_u.spr = 0;
225         fp->fr_rip = 0;
226         return fp;
227  
228 oops
229         pvmlogerror("fr_snew() can't get memory\n");
230         pvmbailout(0);
231         return (struct frag*)0;   /* Unreachable Computation (ID: 2647.2692) */
232 




Change Warning 2646.2690 : Useless Assignment

Because they are very similar, this warning shares annotations with warning 2646.2691.

Priority:
State:
Finding:
Owner:
Note: