Text  |   XML   |   Visible Warnings:

Pvm : Pvm analysis 1 : Unused Value  at ddpro.c:2867

Categories: LANG.STRUCT.UVAL CWE:563
Warning ID: 2580.2612
Procedure: dm_notify
Trace: View
Modified: Wed Sep 2 12:41: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/ddpro.c
  Enter dm_notify
2859 dm_notify(hp, mp) 
2860         struct hostd *hp;
2861         struct pmsg *mp;
2862 {
2863         int what, tid;
2864         struct waitc *wp;
2865         struct pmsg *mp2;
2866  
2867         hp = hp;     /* Unused Value */
2868  
2869         upkint(mp, &what);
2870         upkuint(mp, &tid);
2871         if (what != PvmTaskExit) {
2872                 pvmlogprintf("dm_notify() what = %d?\n", what);
2873                 return 0;
2874         }
2875  
2876         mp2 = mesg_new(0);
2877         mp2->m_dst = mp->m_src;   /* Null Pointer Dereference (ID: 2581.2613) */
2878         mp2->m_tag = DM_NOTIFYACK;
2879         mp2->m_wid = mp->m_wid;
2880         pkint(mp2, tid);
2881  
2882         if (task_find(tid)) {
2883                 wp = wait_new(WT_TASKX);
2884                 wp->wa_on = tid;
2885                 wp->wa_tid = mp->m_src;
2886                 wp->wa_dep = mp->m_wid;
2887                 wp->wa_mesg = mp2;
2888  
2889         } else {
2890                 sendmessage(mp2);
2891         }
2892         return 0;
2893 




Change Warning 2580.2612 : Unused Value

Priority:
State:
Finding:
Owner:
Note: