summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohnny Willemsen <jwillemsen@remedy.nl>2021-03-10 14:10:54 +0100
committerGitHub <noreply@github.com>2021-03-10 14:10:54 +0100
commit9fe32b45a01b5d9b453d03902f986aca65292761 (patch)
treec9070c341e07577411c9fae24427557f11be6ce3
parentb0a0b92a0ee6bb248700d6ff4e7c51cc44db198f (diff)
parentdf1008d5611e10fb8af7c8a49e9d4c7a8c4b7681 (diff)
downloadATCD-9fe32b45a01b5d9b453d03902f986aca65292761.tar.gz
Merge pull request #1448 from jwillemsen/jwi-cpp11cleanup
Fixed unused parameter warning
-rw-r--r--ACE/ace/SPIPE_Addr.inl9
-rw-r--r--ACE/ace/SString.h2
2 files changed, 4 insertions, 7 deletions
diff --git a/ACE/ace/SPIPE_Addr.inl b/ACE/ace/SPIPE_Addr.inl
index b92aed80916..e5ab7bc7fe3 100644
--- a/ACE/ace/SPIPE_Addr.inl
+++ b/ACE/ace/SPIPE_Addr.inl
@@ -5,16 +5,14 @@
ACE_BEGIN_VERSIONED_NAMESPACE_DECL
// Compare two addresses for equality.
-
ACE_INLINE bool
ACE_SPIPE_Addr::operator == (const ACE_SPIPE_Addr &sap) const
{
return ACE_OS::strcmp (this->SPIPE_addr_.rendezvous_,
- sap.SPIPE_addr_.rendezvous_ ) == 0;
+ sap.SPIPE_addr_.rendezvous_) == 0;
}
// Compare two addresses for inequality.
-
ACE_INLINE bool
ACE_SPIPE_Addr::operator != (const ACE_SPIPE_Addr &sap) const
{
@@ -22,9 +20,8 @@ ACE_SPIPE_Addr::operator != (const ACE_SPIPE_Addr &sap) const
}
// Return the path name used for the rendezvous point.
-
ACE_INLINE const ACE_TCHAR *
-ACE_SPIPE_Addr::get_path_name (void) const
+ACE_SPIPE_Addr::get_path_name () const
{
return this->SPIPE_addr_.rendezvous_;
}
@@ -42,7 +39,7 @@ ACE_SPIPE_Addr::user_id (uid_t uid)
}
ACE_INLINE gid_t
-ACE_SPIPE_Addr::group_id (void) const
+ACE_SPIPE_Addr::group_id () const
{
return this->SPIPE_addr_.gid_;
}
diff --git a/ACE/ace/SString.h b/ACE/ace/SString.h
index 81651b78dbb..70031e5293b 100644
--- a/ACE/ace/SString.h
+++ b/ACE/ace/SString.h
@@ -88,7 +88,7 @@ public:
ACE_NS_WString (size_type len, ACE_Allocator *alloc = nullptr);
/// Copy constructor.
- ACE_NS_WString (const ACE_NS_WString &s) = default;
+ ACE_NS_WString (const ACE_NS_WString &) = default;
ACE_NS_WString &operator= (const ACE_NS_WString&) = default;
/// Constructor that copies @a c into dynamically allocated memory.