Remove warnings
[anna.git] / source / core / functions.cpp
index 1dd3025..567fb71 100644 (file)
@@ -231,7 +231,6 @@ throw(RuntimeException) {
   const char* src = hexString.data();
   unsigned char hex;
   int aux;
-  int j = 0;
 
   for(int ii = 1, maxii = hexString.length(); ii < maxii; ii += 2) {
     if(isxdigit(aux = src [ii - 1]) == 0)
@@ -703,7 +702,6 @@ std::string functions::getHostnameIP() throw() {
   std::string result = "";
   struct hostent *he;
   struct in_addr **addr_list;
-  struct in_addr ipv4addr;
   char hostname[128];
   gethostname(hostname, sizeof hostname);
 
@@ -1472,17 +1470,17 @@ void functions::codeIsupNumber(const isup_number_t & isupNumber, bool calledOrCa
   bool filler = isupNumber.OddEven;
   bool hasDigits = (isupNumber.Digits.size() > 0);
   byte = filler ? 0x80 : 0x00;
-  byte = byte |= isupNumber.NatureOfAddress;
+  byte |= isupNumber.NatureOfAddress;
   target += byte;
 
   if(calledOrCalling) {
     byte = isupNumber.InternalNetworkNumber << 7;
-    byte = byte |= (isupNumber.NumberingPlan << 4);
+    byte |= (isupNumber.NumberingPlan << 4);
   } else {
     byte = isupNumber.NumberIncomplete << 7;
-    byte = byte |= (isupNumber.NumberingPlan << 4);
-    byte = byte |= (isupNumber.AddressPresentationRestricted << 2);
-    byte = byte |= isupNumber.Screening;
+    byte |= (isupNumber.NumberingPlan << 4);
+    byte |= (isupNumber.AddressPresentationRestricted << 2);
+    byte |= isupNumber.Screening;
   }
 
   target += byte;