Skip to content

Commit 380df0a

Browse files
committed
Bug#31037561 enable doc-comment warnings for storage/ndb
- enabled doc-comment warnings - added parameter-names with [[maybe_unused]] to fixed the cross-referencing - removed @return for functions returning void - fixed @param name - removed @param that refer to non-existent arguments - fixed @param[out] Change-Id: I59bd511c3952d64115e207e1f10af097c0fb51da
1 parent 206ca7b commit 380df0a

File tree

10 files changed

+7
-13
lines changed

10 files changed

+7
-13
lines changed

storage/ndb/CMakeLists.txt

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,6 @@ INCLUDE(ndb_add_executable)
3030

3131
MSVC_CPPCHECK_DISABLE()
3232
DISABLE_MISSING_PROFILE_WARNING()
33-
# TODO: remove when all -Wdocumentation warnings are fixed.
34-
DISABLE_DOCUMENTATION_WARNINGS()
3533

3634
IF(NOT WITHOUT_SERVER)
3735
IF(WIN32)

storage/ndb/include/logger/LogHandler.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ class LogHandler
177177
*
178178
* @param config where to store parameters
179179
*/
180-
virtual bool getParams(BaseString &/*config*/) {return false;}
180+
virtual bool getParams(BaseString &config [[maybe_unused]]) {return false;}
181181

182182
virtual ndb_off_t getCurrentSize() {return -1;}
183183
virtual ndb_off_t getMaxSize() {return -1;}

storage/ndb/include/mgmapi/mgmapi.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1659,7 +1659,7 @@ struct ssl_ctx_st;
16591659
* 12 if handle is using TLS version 1.2
16601660
* 13 if handle is using TLS version 1.3
16611661
*/
1662-
int ndb_mgm_has_tls(NdbMgmHandle);
1662+
int ndb_mgm_has_tls(NdbMgmHandle handle);
16631663

16641664
/**
16651665
* Struct ndb\_mgm\_cert\_table is a linked structure describing a
@@ -1687,7 +1687,7 @@ struct ssl_ctx_st;
16871687
* On return, list will be populated with a pointer to a table. The table
16881688
* should be freed after use by calling ndb\_mgm\_cert\_table\_free().
16891689
*/
1690-
int ndb_mgm_list_certs(NdbMgmHandle, struct ndb_mgm_cert_table ** list);
1690+
int ndb_mgm_list_certs(NdbMgmHandle handle, struct ndb_mgm_cert_table ** list);
16911691

16921692
/**
16931693
* Free a linked list of certificate descriptions.

storage/ndb/plugin/ha_ndbcluster.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1974,7 +1974,7 @@ NDB_INDEX_DATA::Attrid_map::Attrid_map(const KEY *key_info,
19741974
/**
19751975
@brief Create Attrid_map for mapping the columns of KEY to a NDB table.
19761976
@param key_info key to create mapping for
1977-
@param index NDB table definition
1977+
@param table NDB table definition
19781978
*/
19791979
NDB_INDEX_DATA::Attrid_map::Attrid_map(const KEY *key_info,
19801980
const NdbDictionary::Table *table) {

storage/ndb/plugin/ha_ndbcluster_binlog.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6134,7 +6134,7 @@ static inline ndb_binlog_index_row *ndb_find_binlog_index_row(
61346134
/**
61356135
@brief Check that expected columns for specific key are defined
61366136
@param defined Bitmap of defined (received from NDB) columns
6137-
@param key The key to check columns for
6137+
@param key_info The key to check columns for
61386138
@return true if all expected key columns have been recieved
61396139
*/
61406140
static bool check_key_defined(MY_BITMAP *defined, const KEY *const key_info) {

storage/ndb/plugin/ha_ndbcluster_binlog.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,6 @@ bool ndbcluster_binlog_check_schema_async(const std::string &schema_name);
127127
/**
128128
@brief Retrieve information about objects currently excluded from sync
129129
@param excluded_table Pointer to excluded objects table object
130-
@return void
131130
*/
132131
void ndbcluster_binlog_retrieve_sync_excluded_objects(
133132
Ndb_sync_excluded_objects_table *excluded_table);
@@ -141,7 +140,6 @@ unsigned int ndbcluster_binlog_get_sync_excluded_objects_count();
141140
/**
142141
@brief Retrieve information about objects currently pending sync
143142
@param pending_table Pointer to pending objects table object
144-
@return void
145143
*/
146144
void ndbcluster_binlog_retrieve_sync_pending_objects(
147145
Ndb_sync_pending_objects_table *pending_table);

storage/ndb/plugin/ndb_applier.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -257,7 +257,7 @@ class Ndb_applier {
257257
258258
@param row_server_id The server_id in the written row
259259
@param row_epoch The epoch in the written row
260-
@param skip_write[out] Flag telling the caller that write of this row
260+
@param[out] skip_write Flag telling the caller that write of this row
261261
should be skipped.
262262
@return 0 for sucess
263263
@return > 0 for error

storage/ndb/plugin/ndb_replica.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,6 @@ class Ndb_replica {
199199

200200
/**
201201
@brief Get the current max applied epoch for channel
202-
@return
203202
*/
204203
Uint64 get_max_rep_epoch() const {
205204
std::lock_guard<std::mutex> lock(m_global_mutex);

storage/ndb/src/mgmapi/mgmapi_internal.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,6 @@ int ndb_mgm_get_connection_int_parameter(NdbMgmHandle handle,
8686
/**
8787
* Convert connection to transporter
8888
* @param handle NDB management handle.
89-
* @param s Transporter socket.
9089
*
9190
* @note the socket is now able to be used as a transporter connection
9291
* @note the management handle is no longer valid after this call

storage/ndb/src/ndbapi/NdbEventOperationImpl.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -476,7 +476,7 @@ NdbEventOperationImpl::get_blob_part_no(bool hasDist)
476476
data are stored
477477
478478
@param blob The blob column to print
479-
@param event_buf_data Pointer to first event data buffer
479+
@param event_data_buf Pointer to first event data buffer
480480
@param hasDist Some variability for fuziness
481481
@param part_start Number of the first blob part requested
482482
@param part_count Count of blob parts requested

0 commit comments

Comments
 (0)