warning in run cammand "make" for ns2
hi
i work with AODV in ns2.35 i comment two line in aodv.h file: 1- //#define AODV_LINK_LAYER_DETECTION 2- //#define AODV_USE_LL_METRIC but when i "make clean" and then "make" i see some warning that i think it affect in my result. i dont want to have this warnings.... aodv/aodv.cc: In member function ‘void AODV::rt_ll_failed(Packet*)’: aodv/aodv.cc:566:16: warning: unused variable ‘ih’ [-Wunused-variable] struct hdr_ip *ih = HDR_IP(p); ^ aodv/aodv.cc:567:18: warning: unused variable ‘rt’ [-Wunused-variable] aodv_rt_entry *rt; ^ aodv/aodv.cc:568:10: warning: unused variable ‘broken_nbr’ [-Wunused-variable] nsaddr_t broken_nbr = ch->next_hop_; ^ can anybody help me blz? |
A warning will usually appear when you have an unused variable.
I.e. "some function" is written in the code, but not used in that file ( Or in other files.) ? May be caused by your commented lines. ? No AODV_LINK_LAYER_DETECTION or AODV_USE_LL_METRIC ? Then it may be obvious that some warnings appear. Warnings are "informational text". Not errors. Can be ignored. No reason to change anything in the code. - |
All times are GMT -5. The time now is 10:10 PM. |