LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 02-12-2015, 12:36 PM   #1
mary1001
Member
 
Registered: Jul 2014
Location: Iran
Posts: 76

Rep: Reputation: Disabled
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?
 
Old 02-12-2015, 04:06 PM   #2
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,518

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
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.

-
 
  


Reply

Tags
ns2


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
help me, error run command "nam" on ns2, (allionne2.33, ubuntu10.10, vmware 8.04) vuichoigiaitri Linux - Networking 1 08-17-2012 02:48 AM
"make" command error in ns2.33 on fedora16 david123 Linux - Newbie 7 06-22-2012 04:15 AM
Leach installation on ns2.35-- error after "make" command supu Linux - Newbie 2 03-27-2012 03:20 AM
Warning on running "make check", 2nd time satimis Linux From Scratch 8 07-11-2005 03:46 AM
When I run rpm -Uvh it says "warning: waiting for transaction lock" Niceman2005 Linux - Software 5 11-12-2004 07:47 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 01:14 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration