Browse Source

Fixed Clang warning about unused function in iface_mgr_unittest.cc

Tomek Mrugalski 13 years ago
parent
commit
dc49f88694
1 changed files with 2 additions and 2 deletions
  1. 2 2
      src/lib/dhcp/tests/iface_mgr_unittest.cc

+ 2 - 2
src/lib/dhcp/tests/iface_mgr_unittest.cc

@@ -614,6 +614,8 @@ TEST_F(IfaceMgrTest, socketInfo) {
     delete ifacemgr;
 }
 
+#if defined(OS_LINUX)
+
 /// @brief parses text representation of MAC address
 ///
 /// This function parses text representation of a MAC address and stores
@@ -662,8 +664,6 @@ size_t parse_mac(const std::string& textMac, uint8_t* mac, size_t macLen) {
     return (i);
 }
 
-#if defined(OS_LINUX)
-
 /// @brief Parses 'ifconfig -a' output and creates list of interfaces
 ///
 /// This method tries to parse ifconfig output. Note that there are some