Skip to content

Commit 90c5ee8

Browse files
committed
quieting clang-tidy, non-functional changes
Changes to syntax which should not effect generated code
1 parent 5e6dacc commit 90c5ee8

File tree

18 files changed

+17
-46
lines changed

18 files changed

+17
-46
lines changed

modules/libcom/src/as/asLibRoutines.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -359,7 +359,6 @@ void epicsStdCall asPutMemberPvt(ASMEMBERPVT asMemberPvt,void *userPvt)
359359
if(!asActive) return;
360360
if(!pasgmember) return;
361361
pasgmember->userPvt = userPvt;
362-
return;
363362
}
364363

365364
long epicsStdCall asAddClient(ASCLIENTPVT *pasClientPvt,ASMEMBERPVT asMemberPvt,

modules/libcom/src/cxxTemplates/epicsSingletonMutex.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@
2525

2626
namespace {
2727

28-
static epicsThreadOnceId epicsSigletonOnceFlag ( EPICS_THREAD_ONCE_INIT );
29-
static epicsMutex * pEPICSSigletonMutex = 0;
28+
epicsThreadOnceId epicsSigletonOnceFlag ( EPICS_THREAD_ONCE_INIT );
29+
epicsMutex * pEPICSSigletonMutex = 0;
3030

3131
extern "C" void SingletonMutexOnce ( void * /* pParm */ )
3232
{

modules/libcom/src/ellLib/ellLib.c

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,6 @@ void ellAdd (ELLLIST *pList, ELLNODE *pNode)
3434

3535
pList->node.previous = pNode;
3636
pList->count++;
37-
38-
return;
3937
}
4038
/****************************************************************************
4139
*
@@ -65,8 +63,6 @@ void ellConcat (ELLLIST *pDstList, ELLLIST *pAddList)
6563
pAddList->count = 0;
6664
pAddList->node.next = NULL;
6765
pAddList->node.previous = NULL;
68-
69-
return;
7066
}
7167
/****************************************************************************
7268
*
@@ -86,8 +82,6 @@ void ellDelete (ELLLIST *pList, ELLNODE *pNode)
8682
pNode->previous->next = pNode->next;
8783

8884
pList->count--;
89-
90-
return;
9185
}
9286
/****************************************************************************
9387
*
@@ -136,8 +130,6 @@ void ellExtract (ELLLIST *pSrcList, ELLNODE *pStartNode, ELLNODE *pEndNode, ELLL
136130
}
137131
pSrcList->count -= count;
138132
pDstList->count += count;
139-
140-
return;
141133
}
142134
/****************************************************************************
143135
*
@@ -194,8 +186,6 @@ void ellInsert (ELLLIST *plist, ELLNODE *pPrev, ELLNODE *pNode)
194186
pNode->next->previous = pNode;
195187

196188
plist->count++;
197-
198-
return;
199189
}
200190
/****************************************************************************
201191
*

modules/libcom/src/error/errSymLib.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -260,7 +260,6 @@ void errSymTestPrint(long errNum)
260260
if ( message[0] == '\0' ) return;
261261
printf("module %hu number %hu message=\"%s\"\n",
262262
modnum, errnum, message);
263-
return;
264263
}
265264

266265
/****************************************************************

modules/libcom/src/fdmgr/fdManager.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -222,7 +222,6 @@ LIBCOM_API void fdManager::process (double delay)
222222
this->pTimerQueue->process(epicsTime::getCurrent());
223223
}
224224
this->processInProg = false;
225-
return;
226225
}
227226

228227
//

modules/libcom/src/fdmgr/fdmgr.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,8 @@ class fdRegForOldFdmgr : public fdReg {
3939
//
4040
class noFunctionSpecified {};
4141

42-
LIBCOM_API fdRegForOldFdmgr (const SOCKET fdIn, const fdRegType type,
43-
const bool onceOnly, fdManager &manager, pCallBackFDMgr pFunc, void *pParam);
42+
LIBCOM_API fdRegForOldFdmgr (SOCKET fdIn, fdRegType type,
43+
bool onceOnly, fdManager &manager, pCallBackFDMgr pFunc, void *pParam);
4444
LIBCOM_API ~fdRegForOldFdmgr ();
4545

4646
private:

modules/libcom/src/freeList/freeListLib.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,6 @@ LIBCOM_API void epicsStdCall
8383
pfl->lock = epicsMutexMustCreate();
8484
*ppvt = (void *)pfl;
8585
VALGRIND_CREATE_MEMPOOL(pfl, REDZONE, 0);
86-
return;
8786
}
8887

8988
LIBCOM_API void * epicsStdCall freeListCalloc(void *pvt)

modules/libcom/src/gpHash/gpHashLib.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,6 @@ void epicsStdCall gphInitPvt(gphPvt **ppvt, int size)
5656
pgphPvt->paplist = callocMustSucceed(size, sizeof(ELLLIST *), "gphInitPvt");
5757
pgphPvt->lock = epicsMutexMustCreate();
5858
*ppvt = pgphPvt;
59-
return;
6059
}
6160

6261
GPHENTRY * epicsStdCall gphFindParse(gphPvt *pgphPvt, const char *name, size_t len, void *pvtid)
@@ -171,7 +170,6 @@ void epicsStdCall gphDelete(gphPvt *pgphPvt, const char *name, void *pvtid)
171170
}
172171

173172
epicsMutexUnlock(pgphPvt->lock);
174-
return;
175173
}
176174

177175
void epicsStdCall gphFreeMem(gphPvt *pgphPvt)

modules/libcom/src/log/iocLogServer.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -706,8 +706,6 @@ static void freeLogClient(struct iocLogClient *pclient)
706706
epicsSocketDestroy ( pclient->insock );
707707

708708
free (pclient);
709-
710-
return;
711709
}
712710

713711

modules/libcom/src/log/logClient.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -559,7 +559,7 @@ void epicsStdCall iocLogPrefix(const char * prefix)
559559

560560
if (logClientPrefix) {
561561
/* No error message if the new prefix is identical to the old one */
562-
if (strcmp(logClientPrefix, prefix))
562+
if (strcmp(logClientPrefix, prefix)!=0)
563563
printf (ERL_WARNING " iocLogPrefix: The prefix was already set to "
564564
"\"%s\" and can't be changed.\n", logClientPrefix);
565565
return;

0 commit comments

Comments
 (0)