Jump to content

Warning :suggest parentheses around assignment used as truth value


1 post in this topic

Recommended Posts

Hi

I am using this snippet of code

 

void * handle_;

 

if (handle_ =dlopen("/System/Library/Frameworks/DiskArbitration.Framework/Versions/A/DiskArbitration",RTLD_NOW))

{

printf("............");

 

}

else if (handle_ =dlopen("/System/Library/PrivateFrameworks/DiskArbitration.Framework/Versions/A/DiskArbitration",RTLD_NOW))

{

printf(".................");

}

 

But i am getting the warning :

"suggest parentheses around assignment used as truth value" for the first line i,e the for the "for" loop....can somebody help me to get rid of this warning.. ;)

Link to comment
Share on other sites

 Share

×
×
  • Create New...