Skip to content

Commit eee3959

Browse files
committed
CL: Fixed some warnings shown bei clangd in CLion
1 parent 3676556 commit eee3959

23 files changed

+44
-19
lines changed

source/clients/common/ocs_client_parse.cc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@
3939
#include "uti/sge_rmon_macros.h"
4040
#include "uti/sge_uidgid.h"
4141
#include "uti/sge_unistd.h"
42+
#include "uti/sge_dstring.h"
4243

4344
#include "sgeobj/parse.h"
4445
#include "sgeobj/sge_answer.h"

source/clients/common/ocs_client_parse.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,10 @@
3333
************************************************************************/
3434
/*___INFO__MARK_END__*/
3535

36+
#include "basis_types.h"
37+
38+
#include "cull/cull.h"
39+
3640
#define SGE_COMMON_DEF_REQ_FILE "common/sge_request"
3741
#define SGE_HOME_DEF_REQ_FILE ".sge_request"
3842
#define SGE_COMMON_DEF_QSTAT_FILE "common/sge_qstat"

source/clients/qdel/ocs_qdel.cc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@
3333
/*___INFO__MARK_END__*/
3434

3535
#include <cstring>
36+
#include <cstdio>
3637
#include <cctype>
3738

3839
#include "uti/sge_bootstrap.h"

source/common/usage.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,10 @@
3333
************************************************************************/
3434
/*___INFO__MARK_END__*/
3535

36+
#include <cstdlib>
37+
38+
#include "basis_types.h"
39+
3640
/*
3741
for use in mark_argument_syntax() calls:
3842

source/daemons/execd/ptf.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,8 @@
3535

3636
#include <sys/types.h>
3737

38+
#include "cull/cull.h"
39+
3840
#define PTF_COMPENSATION_FACTOR 2.0
3941

4042
typedef pid_t osjobid_t;

source/daemons/execd/reaper_execd.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,8 @@
3535
************************************************************************/
3636
/*___INFO__MARK_END__*/
3737

38+
#include "cull/cull.h"
39+
3840
#include "sgeobj/sge_daemonize.h"
3941

4042
int sge_reap_children_execd(int max_count, bool is_qmaster_down);

source/daemons/qmaster/configuration_qmaster.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@
3434
/*___INFO__MARK_END__*/
3535

3636
#include "basis_types.h"
37+
#include "cull/cull.h"
3738
#include "sgeobj/sge_daemonize.h"
3839

3940
int

source/libs/cull/cull_db.cc

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1194,7 +1194,6 @@ int lString2ListNone(const char *s, lList **lpp, const lDescr *dp,
11941194
dataType = lGetPosType(dp, pos);
11951195
switch (dataType) {
11961196
case lStringT:
1197-
DPRINTF("lString2ListNone: got lStringT data type\n");
11981197
if (lGetNumberOfElem(*lpp) > 1 && lGetElemCaseStr(*lpp, nm, "none")) {
11991198
lFreeList(lpp);
12001199
return 1;
@@ -1204,7 +1203,6 @@ int lString2ListNone(const char *s, lList **lpp, const lDescr *dp,
12041203
lFreeList(lpp);
12051204
break;
12061205
case lHostT:
1207-
DPRINTF("lString2ListNone: got lHostT data type\n");
12081206
if (lGetNumberOfElem(*lpp) > 1 && lGetElemHost(*lpp, nm, "none")) {
12091207
lFreeList(lpp);
12101208
return 1;
@@ -1215,7 +1213,6 @@ int lString2ListNone(const char *s, lList **lpp, const lDescr *dp,
12151213
break;
12161214

12171215
default:
1218-
DPRINTF("lString2ListNone: unexpected data type\n");
12191216
break;
12201217
}
12211218

source/libs/cull/cull_hash.cc

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -879,6 +879,4 @@ void cull_hash_recreate_after_sort(lList *lp) {
879879
}
880880
}
881881
}
882-
883-
DRETURN_VOID;
884882
}

source/libs/cull/cull_sort.cc

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,9 +83,10 @@ int lInsertSorted(const lSortOrder *so, lListElem *ep, lList *lp) {
8383
int lResortElem(const lSortOrder *so, lListElem *ep, lList *lp) {
8484
lDechainElem(lp, ep);
8585
lInsertSorted(so, ep, lp);
86-
DRETURN(0);
86+
return 0;
8787
}
8888

89+
#if 0
8990
/* ------------------------------------------------------------
9091

9192
writes a sort order (for debugging purposes)
@@ -110,6 +111,7 @@ void lWriteSortOrder(
110111

111112
DRETURN_VOID;
112113
}
114+
#endif
113115

114116
/* ----------------------------------------
115117

0 commit comments

Comments
 (0)