compiling with clang shows a bunch of issues in the code.
most notably, class != struct
In file included from /Users/cherry/import/RePlAce/src/argument.cpp:48:
/Users/cherry/import/RePlAce/src/global.h:198:42: warning: unused parameter '_z'
[-Wunused-parameter]
inline void Set(prec _x, prec _y, prec _z) {
^
In file included from /Users/cherry/import/RePlAce/src/argument.cpp:49:
/Users/cherry/import/RePlAce/src/opt.h:109:46: warning: struct 'NET' was previously
declared as a class [-Wmismatched-tags]
void buildRSMT_FLUTE_PerNet(struct FPOS *st, struct NET *net); // lutong
^
/Users/cherry/import/RePlAce/src/global.h:640:7: note: previous use is here
class NET {
^
/Users/cherry/import/RePlAce/src/opt.h:109:46: note: did you mean class here?
void buildRSMT_FLUTE_PerNet(struct FPOS *st, struct NET *net); // lutong
^~~~~~
class
/Users/cherry/import/RePlAce/src/opt.h:112:39: warning: struct 'NET' was previously
declared as a class [-Wmismatched-tags]
void buildRMSTPerNet(struct FPOS *st, struct NET *net);
^
/Users/cherry/import/RePlAce/src/global.h:640:7: note: previous use is here
class NET {
^
/Users/cherry/import/RePlAce/src/opt.h:112:39: note: did you mean class here?
void buildRMSTPerNet(struct FPOS *st, struct NET *net);
^~~~~~
class
/Users/cherry/import/RePlAce/src/opt.h:113:53: warning: struct 'NET' was previously
declared as a class [-Wmismatched-tags]
void buildRMSTPerNet_genTwoPinNets(struct FPOS *st, struct NET *net);
^
/Users/cherry/import/RePlAce/src/global.h:640:7: note: previous use is here
class NET {
^
/Users/cherry/import/RePlAce/src/opt.h:113:53: note: did you mean class here?
void buildRMSTPerNet_genTwoPinNets(struct FPOS *st, struct NET *net);
^~~~~~
class
/Users/cherry/import/RePlAce/src/opt.h:114:30: warning: struct 'NET' was previously
declared as a class [-Wmismatched-tags]
void buildRMSTPerNet_genRMST(struct NET *net);
^
/Users/cherry/import/RePlAce/src/global.h:640:7: note: previous use is here
class NET {
^
/Users/cherry/import/RePlAce/src/opt.h:114:30: note: did you mean class here?
void buildRMSTPerNet_genRMST(struct NET *net);
^~~~~~
class
/Users/cherry/import/RePlAce/src/opt.h:115:49: warning: struct 'NET' was previously
declared as a class [-Wmismatched-tags]
void buildRMSTPerNet_printRMST(struct FPOS *st, struct NET *net);
^
/Users/cherry/import/RePlAce/src/global.h:640:7: note: previous use is here
class NET {
^
/Users/cherry/import/RePlAce/src/opt.h:115:49: note: did you mean class here?
void buildRMSTPerNet_printRMST(struct FPOS *st, struct NET *net);
^~~~~~
class
/Users/cherry/import/RePlAce/src/opt.h:119:49: warning: struct 'NET' was previously
declared as a class [-Wmismatched-tags]
void calcCongPerNet_prob_based(struct FPOS *st, struct NET *net);
^
/Users/cherry/import/RePlAce/src/global.h:640:7: note: previous use is here
class NET {
^
/Users/cherry/import/RePlAce/src/opt.h:119:49: note: did you mean class here?
void calcCongPerNet_prob_based(struct FPOS *st, struct NET *net);
^~~~~~
class
/Users/cherry/import/RePlAce/src/opt.h:120:35: warning: struct 'NET' was previously
declared as a class [-Wmismatched-tags]
void calcCongPerNet_grouter_based(struct NET *net);
^
/Users/cherry/import/RePlAce/src/global.h:640:7: note: previous use is here
class NET {
^
/Users/cherry/import/RePlAce/src/opt.h:120:35: note: did you mean class here?
void calcCongPerNet_grouter_based(struct NET *net);
^~~~~~
class
8 warnings generated.
[ 84%] Building CXX object CMakeFiles/replace.dir/src/bin.cpp.o
In file included from /Users/cherry/import/RePlAce/src/bin.cpp:48:
In file included from /Users/cherry/import/RePlAce/src/bin.h:44:
/Users/cherry/import/RePlAce/src/global.h:198:42: warning: unused parameter '_z'
[-Wunused-parameter]
inline void Set(prec _x, prec _y, prec _z) {
^
In file included from /Users/cherry/import/RePlAce/src/bin.cpp:53:
/Users/cherry/import/RePlAce/src/opt.h:109:46: warning: struct 'NET' was previously
declared as a class [-Wmismatched-tags]
void buildRSMT_FLUTE_PerNet(struct FPOS *st, struct NET *net); // lutong
^
/Users/cherry/import/RePlAce/src/global.h:640:7: note: previous use is here
class NET {
^
/Users/cherry/import/RePlAce/src/opt.h:109:46: note: did you mean class here?
void buildRSMT_FLUTE_PerNet(struct FPOS *st, struct NET *net); // lutong
^~~~~~
class
/Users/cherry/import/RePlAce/src/opt.h:112:39: warning: struct 'NET' was previously
declared as a class [-Wmismatched-tags]
void buildRMSTPerNet(struct FPOS *st, struct NET *net);
^
/Users/cherry/import/RePlAce/src/global.h:640:7: note: previous use is here
class NET {
^
/Users/cherry/import/RePlAce/src/opt.h:112:39: note: did you mean class here?
void buildRMSTPerNet(struct FPOS *st, struct NET *net);
^~~~~~
class
/Users/cherry/import/RePlAce/src/opt.h:113:53: warning: struct 'NET' was previously
declared as a class [-Wmismatched-tags]
void buildRMSTPerNet_genTwoPinNets(struct FPOS *st, struct NET *net);
^
/Users/cherry/import/RePlAce/src/global.h:640:7: note: previous use is here
class NET {
^
/Users/cherry/import/RePlAce/src/opt.h:113:53: note: did you mean class here?
void buildRMSTPerNet_genTwoPinNets(struct FPOS *st, struct NET *net);
^~~~~~
class
/Users/cherry/import/RePlAce/src/opt.h:114:30: warning: struct 'NET' was previously
declared as a class [-Wmismatched-tags]
void buildRMSTPerNet_genRMST(struct NET *net);
^
/Users/cherry/import/RePlAce/src/global.h:640:7: note: previous use is here
class NET {
^
/Users/cherry/import/RePlAce/src/opt.h:114:30: note: did you mean class here?
void buildRMSTPerNet_genRMST(struct NET *net);
^~~~~~
class
/Users/cherry/import/RePlAce/src/opt.h:115:49: warning: struct 'NET' was previously
declared as a class [-Wmismatched-tags]
void buildRMSTPerNet_printRMST(struct FPOS *st, struct NET *net);
^
/Users/cherry/import/RePlAce/src/global.h:640:7: note: previous use is here
class NET {
^
/Users/cherry/import/RePlAce/src/opt.h:115:49: note: did you mean class here?
void buildRMSTPerNet_printRMST(struct FPOS *st, struct NET *net);
^~~~~~
class
/Users/cherry/import/RePlAce/src/opt.h:119:49: warning: struct 'NET' was previously
declared as a class [-Wmismatched-tags]
void calcCongPerNet_prob_based(struct FPOS *st, struct NET *net);
^
/Users/cherry/import/RePlAce/src/global.h:640:7: note: previous use is here
class NET {
^
/Users/cherry/import/RePlAce/src/opt.h:119:49: note: did you mean class here?
void calcCongPerNet_prob_based(struct FPOS *st, struct NET *net);
^~~~~~
class
/Users/cherry/import/RePlAce/src/opt.h:120:35: warning: struct 'NET' was previously
declared as a class [-Wmismatched-tags]
void calcCongPerNet_grouter_based(struct NET *net);
^
/Users/cherry/import/RePlAce/src/global.h:640:7: note: previous use is here
class NET {
^
/Users/cherry/import/RePlAce/src/opt.h:120:35: note: did you mean class here?
void calcCongPerNet_grouter_based(struct NET *net);
^~~~~~
class
/Users/cherry/import/RePlAce/src/bin.cpp:795:21: warning: unused parameter 'N'
[-Wunused-parameter]
void bin_update(int N) {
^
/Users/cherry/import/RePlAce/src/bin.cpp:869:20: warning: cast from 'const void *'
to 'float ' drops const qualifier [-Wcast-qual]
return ((prec *)p2 - *(prec *)p1);
^
/Users/cherry/import/RePlAce/src/bin.cpp:869:34: warning: cast from 'const void *'
to 'float ' drops const qualifier [-Wcast-qual]
return ((prec *)p2 - *(prec *)p1);
^
/Users/cherry/import/RePlAce/src/bin.cpp:970:26: warning: multi-line // comment
[-Wcomment]
//#pragma omp parallel
^
/Users/cherry/import/RePlAce/src/bin.cpp:971:19: warning: multi-line // comment
[-Wcomment]
default(none)
^
/Users/cherry/import/RePlAce/src/bin.cpp:972:18: warning: multi-line // comment
[-Wcomment]
shared(tier)
^
/Users/cherry/import/RePlAce/src/bin.cpp:1018:26: warning: multi-line // comment
[-Wcomment]
//#pragma omp parallel
^
/Users/cherry/import/RePlAce/src/bin.cpp:1019:19: warning: multi-line // comment
[-Wcomment]
default(none)
^
/Users/cherry/import/RePlAce/src/bin.cpp:1020:59: warning: multi-line // comment
[-Wcomment]
shared(tier, sum_ovf_area, gsum_phi, target_cell_den)
^
/Users/cherry/import/RePlAce/src/bin.cpp:1166:19: warning: unused variable 'max_z'
[-Wunused-variable]
prec min_z = 0, max_z = 0;
^
/Users/cherry/import/RePlAce/src/bin.cpp:1162:24: warning: unused variable 'z0'
[-Wunused-variable]
prec x0 = 0, y0 = 0, z0 = 0;
^
/Users/cherry/import/RePlAce/src/bin.cpp:1166:8: warning: unused variable 'min_z'
[-Wunused-variable]
prec min_z = 0, max_z = 0;
^
/Users/cherry/import/RePlAce/src/bin.cpp:1163:24: warning: unused variable 'z1'
[-Wunused-variable]
prec x1 = 0, y1 = 0, z1 = 0;
^
/Users/cherry/import/RePlAce/src/bin.cpp:1159:21: warning: unused variable 'z'
[-Wunused-variable]
int x = 0, y = 0, z = 0;
^
/Users/cherry/import/RePlAce/src/bin.cpp:1328:8: warning: unused variable 'eff_z'
[-Wunused-variable]
prec eff_z = 0;
^
/Users/cherry/import/RePlAce/src/bin.cpp:1483:8: warning: unused variable 'center'
[-Wunused-variable]
FPOS center = mac->center;
^
24 warnings generated.
[ 85%] Building CXX object CMakeFiles/replace.dir/src/bookShelfIO.cpp.o
In file included from /Users/cherry/import/RePlAce/src/bookShelfIO.cpp:41:
In file included from /Users/cherry/import/RePlAce/src/bin.h:44:
/Users/cherry/import/RePlAce/src/global.h:198:42: warning: unused parameter '_z'
[-Wunused-parameter]
inline void Set(prec _x, prec _y, prec _z) {
^
In file included from /Users/cherry/import/RePlAce/src/bookShelfIO.cpp:45:
In file included from /Users/cherry/import/RePlAce/src/initPlacement.h:44:
In file included from /Users/cherry/import/RePlAce/module/eigen-git-mirror/Eigen/SparseCore:11:
In file included from /Users/cherry/import/RePlAce/module/eigen-git-mirror/Eigen/Core:403:
/Users/cherry/import/RePlAce/module/eigen-git-mirror/Eigen/src/Core/util/IntegralConstant.h:57:36: warning:
unused parameter 'other' [-Wunused-parameter]
FixedInt( VariableAndFixedInt other) {
^
In file included from /Users/cherry/import/RePlAce/src/bookShelfIO.cpp:47:
/Users/cherry/import/RePlAce/src/gcell.h:52:1: warning: 'TILE' defined as a class
here but previously declared as a struct [-Wmismatched-tags]
class TILE {
^
/Users/cherry/import/RePlAce/src/global.h:760:3: note: did you mean class here?
struct TILE *tile_mat;
^~~~~~
class
/Users/cherry/import/RePlAce/src/bookShelfIO.cpp:97:7: warning: suggest braces
around initialization of subobject [-Wmissing-braces]
0,
^
{}
/Users/cherry/import/RePlAce/src/bookShelfIO.cpp:682:40: warning: more '%'
conversions than data arguments [-Wformat]
printf("INFO: PLACE.END = (%d, %d, %d)\n\n", (int)(place.end.x + 0.5),
~^
/Users/cherry/import/RePlAce/src/bookShelfIO.cpp:1166:27: warning: variable
'curShapeCount' is uninitialized when used here [-Wuninitialized]
tmpStor.reserve(curShapeCount);
^~~~~~~~~~~~~
/Users/cherry/import/RePlAce/src/bookShelfIO.cpp:1144:24: note: initialize the
variable 'curShapeCount' to silence this warning
int curShapeCount;
^
= 0
/Users/cherry/import/RePlAce/src/bookShelfIO.cpp:1437:10: warning: unused variable
'z' [-Wunused-variable]
prec z = TIER_DEP;
^
/Users/cherry/import/RePlAce/src/bookShelfIO.cpp:1661:18: warning: struct 'NET' was
previously declared as a class [-Wmismatched-tags]
netInstance = (struct NET *)mkl_malloc(sizeof(struct NET) * netCNT, 64);
^
/Users/cherry/import/RePlAce/src/global.h:640:7: note: previous use is here
class NET {
^
/Users/cherry/import/RePlAce/src/bookShelfIO.cpp:1661:18: note: did you mean class
here?
netInstance = (struct NET *)mkl_malloc(sizeof(struct NET) * netCNT, 64);
^~~~~~
class
/Users/cherry/import/RePlAce/src/bookShelfIO.cpp:1661:49: warning: struct 'NET' was
previously declared as a class [-Wmismatched-tags]
netInstance = (struct NET *)mkl_malloc(sizeof(struct NET) * netCNT, 64);
^
/Users/cherry/import/RePlAce/src/global.h:640:7: note: previous use is here
class NET {
^
/Users/cherry/import/RePlAce/src/bookShelfIO.cpp:1661:49: note: did you mean class
here?
netInstance = (struct NET *)mkl_malloc(sizeof(struct NET) * netCNT, 64);
^~~~~~
class
/Users/cherry/import/RePlAce/src/bookShelfIO.cpp:1995:53: warning: format specifies
type 'double' but the argument has type 'int' [-Wformat]
curModule->pmin.x, curModule->pmin.y, 0);
^
/Users/cherry/import/RePlAce/src/bookShelfIO.cpp:2039:55: warning: format specifies
type 'double' but the argument has type 'int' [-Wformat]
curModule->pmin.x, curModule->pmin.y, 0);
^
/Users/cherry/import/RePlAce/src/bookShelfIO.cpp:2091:53: warning: format specifies
type 'double' but the argument has type 'int' [-Wformat]
curModule->pmin.x, curModule->pmin.y, 0);
^
/Users/cherry/import/RePlAce/src/bookShelfIO.cpp:2381:49: warning: format specifies
type 'int' but the argument has type 'prec' (aka 'float') [-Wformat]
fprintf(fp_scl, " Coordinate : %d\n", rwp->pmin.y);
~~ ^~~~~~~~~~~
%f
/Users/cherry/import/RePlAce/src/bookShelfIO.cpp:2387:67: warning: format specifies
type 'int' but the argument has type 'prec' (aka 'float') [-Wformat]
fprintf(fp_scl, " SubrowOrigin : %d\tNumSites : %d\n", rwp->pmin.x,
~~ ^~~~~~~~~~~
%f
/Users/cherry/import/RePlAce/src/bookShelfIO.cpp:2416:3: warning: struct 'NET' was
previously declared as a class [-Wmismatched-tags]
struct NET *curNet= NULL;
^
/Users/cherry/import/RePlAce/src/global.h:640:7: note: previous use is here
class NET {
^
/Users/cherry/import/RePlAce/src/bookShelfIO.cpp:2416:3: note: did you mean class
here?
struct NET *curNet= NULL;
^~~~~~
class
/Users/cherry/import/RePlAce/src/bookShelfIO.cpp:2410:8: warning: unused variable
'cmd' [-Wunused-variable]
char cmd[BUFFERSIZE];
^
/Users/cherry/import/RePlAce/src/bookShelfIO.cpp:2405:30: warning: unused parameter
'dir' [-Wunused-parameter]
void read_routing_file(char *dir, string routeName ) {
^
/Users/cherry/import/RePlAce/src/bookShelfIO.cpp:2681:8: warning: unused variable
'isRoutingLayer' [-Wunused-variable]
bool isRoutingLayer = false;
^
/Users/cherry/import/RePlAce/src/bookShelfIO.cpp:2900:32: warning: format specifies
type 'int' but the argument has type 'std::__1::vector<int,
std::__1::allocator >::size_type' (aka 'unsigned long') [-Wformat]
fprintf( fp_route, " %d ", layerIdx->size());
~~ ^~~~~~~~~~~~~~~~
%lu
/Users/cherry/import/RePlAce/src/bookShelfIO.cpp:3189:48: warning: unused parameter
'lab' [-Wunused-parameter]
void WritePl(char *dir_tier, int curLayer, int lab, bool isShapeDrawing,
^
/Users/cherry/import/RePlAce/src/bookShelfIO.cpp:3276:40: warning: format specifies
type 'int' but the argument has type 'std::__1::vector<ROW,
std::__1::allocator >::size_type' (aka 'unsigned long') [-Wformat]
fprintf(fp_scl, "NumRows : \t%d\n", tmpRowStor.size() );
~~ ^~~~~~~~~~~~~~~~~
%lu
/Users/cherry/import/RePlAce/src/bookShelfIO.cpp:3552:18: warning: unused variable
'mac' [-Wunused-variable]
struct MODULE *mac = NULL;
^
/Users/cherry/import/RePlAce/src/bookShelfIO.cpp:3554:15: warning: unused variable
'pin' [-Wunused-variable]
struct PIN *pin = NULL;
^
/Users/cherry/import/RePlAce/src/bookShelfIO.cpp:3547:61: warning: unused parameter
'lab' [-Wunused-parameter]
void output_tier_pl_global_router(string plName, int z, int lab, bool isNam...
^
/Users/cherry/import/RePlAce/src/bookShelfIO.cpp:3873:3: warning: struct 'NET' was
previously declared as a class [-Wmismatched-tags]
struct NET *net = NULL;
^
/Users/cherry/import/RePlAce/src/global.h:640:7: note: previous use is here
class NET {
^
/Users/cherry/import/RePlAce/src/bookShelfIO.cpp:3873:3: note: did you mean class
here?
struct NET *net = NULL;
^~~~~~
class
25 warnings generated.
[ 85%] Building CXX object CMakeFiles/replace.dir/src/charge.cpp.o
In file included from /Users/cherry/import/RePlAce/src/charge.cpp:46:
In file included from /Users/cherry/import/RePlAce/src/bin.h:44:
/Users/cherry/import/RePlAce/src/global.h:198:42: warning: unused parameter '_z'
[-Wunused-parameter]
inline void Set(prec _x, prec _y, prec _z) {
^
In file included from /Users/cherry/import/RePlAce/src/charge.cpp:51:
/Users/cherry/import/RePlAce/src/opt.h:109:46: warning: struct 'NET' was previously
declared as a class [-Wmismatched-tags]
void buildRSMT_FLUTE_PerNet(struct FPOS *st, struct NET *net); // lutong
^
/Users/cherry/import/RePlAce/src/global.h:640:7: note: previous use is here
class NET {
^
/Users/cherry/import/RePlAce/src/opt.h:109:46: note: did you mean class here?
void buildRSMT_FLUTE_PerNet(struct FPOS *st, struct NET *net); // lutong
^~~~~~
class
/Users/cherry/import/RePlAce/src/opt.h:112:39: warning: struct 'NET' was previously
declared as a class [-Wmismatched-tags]
void buildRMSTPerNet(struct FPOS *st, struct NET *net);
^
/Users/cherry/import/RePlAce/src/global.h:640:7: note: previous use is here
class NET {
^
/Users/cherry/import/RePlAce/src/opt.h:112:39: note: did you mean class here?
void buildRMSTPerNet(struct FPOS *st, struct NET *net);
^~~~~~
class
/Users/cherry/import/RePlAce/src/opt.h:113:53: warning: struct 'NET' was previously
declared as a class [-Wmismatched-tags]
void buildRMSTPerNet_genTwoPinNets(struct FPOS *st, struct NET *net);
^
/Users/cherry/import/RePlAce/src/global.h:640:7: note: previous use is here
class NET {
^
/Users/cherry/import/RePlAce/src/opt.h:113:53: note: did you mean class here?
void buildRMSTPerNet_genTwoPinNets(struct FPOS *st, struct NET *net);
^~~~~~
class
/Users/cherry/import/RePlAce/src/opt.h:114:30: warning: struct 'NET' was previously
declared as a class [-Wmismatched-tags]
void buildRMSTPerNet_genRMST(struct NET *net);
^
/Users/cherry/import/RePlAce/src/global.h:640:7: note: previous use is here
class NET {
^
/Users/cherry/import/RePlAce/src/opt.h:114:30: note: did you mean class here?
void buildRMSTPerNet_genRMST(struct NET *net);
^~~~~~
class
/Users/cherry/import/RePlAce/src/opt.h:115:49: warning: struct 'NET' was previously
declared as a class [-Wmismatched-tags]
void buildRMSTPerNet_printRMST(struct FPOS *st, struct NET *net);
^
/Users/cherry/import/RePlAce/src/global.h:640:7: note: previous use is here
class NET {
^
/Users/cherry/import/RePlAce/src/opt.h:115:49: note: did you mean class here?
void buildRMSTPerNet_printRMST(struct FPOS *st, struct NET *net);
^~~~~~
class
/Users/cherry/import/RePlAce/src/opt.h:119:49: warning: struct 'NET' was previously
declared as a class [-Wmismatched-tags]
void calcCongPerNet_prob_based(struct FPOS *st, struct NET *net);
^
/Users/cherry/import/RePlAce/src/global.h:640:7: note: previous use is here
class NET {
^
/Users/cherry/import/RePlAce/src/opt.h:119:49: note: did you mean class here?
void calcCongPerNet_prob_based(struct FPOS *st, struct NET *net);
^~~~~~
class
/Users/cherry/import/RePlAce/src/opt.h:120:35: warning: struct 'NET' was previously
declared as a class [-Wmismatched-tags]
void calcCongPerNet_grouter_based(struct NET *net);
^
/Users/cherry/import/RePlAce/src/global.h:640:7: note: previous use is here
class NET {
^
/Users/cherry/import/RePlAce/src/opt.h:120:35: note: did you mean class here?
void calcCongPerNet_grouter_based(struct NET *net);
^~~~~~
class
8 warnings generated.
[ 85%] Building CXX object CMakeFiles/replace.dir/src/defParser.cpp.o
In file included from /Users/cherry/import/RePlAce/src/defParser.cpp:79:
In file included from /Users/cherry/import/RePlAce/src/lefdefIO.h:86:
/Users/cherry/import/RePlAce/src/global.h:198:42: warning: unused parameter '_z'
[-Wunused-parameter]
inline void Set(prec _x, prec _y, prec _z) {
^
/Users/cherry/import/RePlAce/src/defParser.cpp:180:22: warning: cast from
'const char *' to 'char ' drops const qualifier [-Wcast-qual]
return ((char)"N");
^
/Users/cherry/import/RePlAce/src/defParser.cpp:182:22: warning: cast from
'const char *' to 'char ' drops const qualifier [-Wcast-qual]
return ((char)"W");
^
/Users/cherry/import/RePlAce/src/defParser.cpp:184:22: warning: cast from
'const char *' to 'char ' drops const qualifier [-Wcast-qual]
return ((char)"S");
^
/Users/cherry/import/RePlAce/src/defParser.cpp:186:22: warning: cast from
'const char *' to 'char ' drops const qualifier [-Wcast-qual]
return ((char)"E");
^
/Users/cherry/import/RePlAce/src/defParser.cpp:188:22: warning: cast from
'const char *' to 'char ' drops const qualifier [-Wcast-qual]
return ((char)"FN");
^
/Users/cherry/import/RePlAce/src/defParser.cpp:190:22: warning: cast from
'const char *' to 'char ' drops const qualifier [-Wcast-qual]
return ((char)"FW");
^
/Users/cherry/import/RePlAce/src/defParser.cpp:192:22: warning: cast from
'const char *' to 'char ' drops const qualifier [-Wcast-qual]
return ((char)"FS");
^
/Users/cherry/import/RePlAce/src/defParser.cpp:194:22: warning: cast from
'const char *' to 'char ' drops const qualifier [-Wcast-qual]
return ((char)"FE");
^
/Users/cherry/import/RePlAce/src/defParser.cpp:196:18: warning: cast from
'const char *' to 'char ' drops const qualifier [-Wcast-qual]
return ((char)"BOGUS");
^
/Users/cherry/import/RePlAce/src/defParser.cpp:1350:57: warning: flag ' ' results
in undefined behavior with 's' conversion specifier [-Wformat]
CIRCUIT_FPRINTF(fout, "\n + MASK %d + POLYGON % s ", net->polyMask(i),
^
/Users/cherry/import/RePlAce/src/lefdefIO.h:59:22: note: expanded from macro
'CIRCUIT_FPRINTF'
fprintf(fmt, ##VA_ARGS);
^~~~~~~~~~~
/Users/cherry/import/RePlAce/src/defParser.cpp:1672:18: warning: cast from
'const char *' to 'char ' drops const qualifier [-Wcast-qual]
return ((char)in);
^
/Users/cherry/import/RePlAce/src/defParser.cpp:2004:56: warning: data argument not
used by format string [-Wformat-extra-args]
CIRCUIT_FPRINTF(fout, "NAMESCASESENSITIVE ON ;\n", d);
~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^
/Users/cherry/import/RePlAce/src/lefdefIO.h:59:22: note: expanded from macro
'CIRCUIT_FPRINTF'
fprintf(fmt, ##VA_ARGS);
^~~~~~~~~~~
/Users/cherry/import/RePlAce/src/defParser.cpp:2007:57: warning: data argument not
used by format string [-Wformat-extra-args]
CIRCUIT_FPRINTF(fout, "NAMESCASESENSITIVE OFF ;\n", d);
~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^
/Users/cherry/import/RePlAce/src/lefdefIO.h:59:22: note: expanded from macro
'CIRCUIT_FPRINTF'
fprintf(fmt, ##VA_ARGS);
^~~~~~~~~~~
/Users/cherry/import/RePlAce/src/defParser.cpp:2738:25: warning: data argument not
used by format string [-Wformat-extra-args]
td->toInst(), td->toPin());
^
/Users/cherry/import/RePlAce/src/lefdefIO.h:59:22: note: expanded from macro
'CIRCUIT_FPRINTF'
fprintf(fmt, ##VA_ARGS);
^~~~~~~~~~~
/Users/cherry/import/RePlAce/src/defParser.cpp:2746:55: warning: more '%'
conversions than data arguments [-Wformat]
CIRCUIT_FPRINTF(fout, "- MACRO %s THRUPIN %s %s ", td->macroName(),
~^
/Users/cherry/import/RePlAce/src/lefdefIO.h:59:22: note: expanded from macro
'CIRCUIT_FPRINTF'
fprintf(fmt, ##VA_ARGS);
^~~~~~~~~~~
/Users/cherry/import/RePlAce/src/defParser.cpp:3293:41: warning: format specifies
type 'int' but the argument has type 'std::__1::vector<LefDefParser::defiVia,
std::__1::allocatorLefDefParser::defiVia >::size_type'
(aka 'unsigned long') [-Wformat]
CIRCUIT_FPRINTF(fout, "VIAS %d ; \n", defViaStor.size());
~~ ^~~~~~~~~~~~~~~~~
%lu
/Users/cherry/import/RePlAce/src/lefdefIO.h:59:22: note: expanded from macro
'CIRCUIT_FPRINTF'
fprintf(fmt, ##VA_ARGS);
^~~~~~~~~~~
/Users/cherry/import/RePlAce/src/defParser.cpp:3392:46: warning: format specifies
type 'int' but the argument has type
'std::__1::vector<LefDefParser::defiComponent,
std::__1::allocatorLefDefParser::defiComponent >::size_type'
(aka 'unsigned long') [-Wformat]
CIRCUIT_FPRINTF(fout, "COMPONENTS %d ;\n", defComponentStor.size());
~~ ^~~~~~~~~~~~~~~~~~~~~~~
%lu
/Users/cherry/import/RePlAce/src/lefdefIO.h:59:22: note: expanded from macro
'CIRCUIT_FPRINTF'
fprintf(fmt, ##VA_ARGS);
^~~~~~~~~~~
/Users/cherry/import/RePlAce/src/defParser.cpp:3508:45: warning: format specifies
type 'int' but the argument has type
'std::__1::vector<LefDefParser::defiBlockage,
std::__1::allocatorLefDefParser::defiBlockage >::size_type'
(aka 'unsigned long') [-Wformat]
CIRCUIT_FPRINTF(fout, "BLOCKAGES %d ;\n", defBlockageStor.size());
~~ ^~~~~~~~~~~~~~~~~~~~~~
%lu
/Users/cherry/import/RePlAce/src/lefdefIO.h:59:22: note: expanded from macro
'CIRCUIT_FPRINTF'
fprintf(fmt, ##VA_ARGS);
^~~~~~~~~~~
/Users/cherry/import/RePlAce/src/defParser.cpp:3571:40: warning: format specifies
type 'int' but the argument has type 'std::__1::vector<LefDefParser::defiPin,
std::__1::allocatorLefDefParser::defiPin >::size_type'
(aka 'unsigned long') [-Wformat]
CIRCUIT_FPRINTF(fout, "PINS %d ;\n", defPinStor.size());
~~ ^~~~~~~~~~~~~~~~~
%lu
/Users/cherry/import/RePlAce/src/lefdefIO.h:59:22: note: expanded from macro
'CIRCUIT_FPRINTF'
fprintf(fmt, ##VA_ARGS);
^~~~~~~~~~~
/Users/cherry/import/RePlAce/src/defParser.cpp:3951:61: warning: flag ' ' results
in undefined behavior with 's' conversion specifier [-Wformat]
CIRCUIT_FPRINTF(fout, "\n + MASK %d + POLYGON % s ",
^
/Users/cherry/import/RePlAce/src/lefdefIO.h:59:22: note: expanded from macro
'CIRCUIT_FPRINTF'
fprintf(fmt, ##VA_ARGS);
^~~~~~~~~~~
/Users/cherry/import/RePlAce/src/defParser.cpp:4521:40: warning: format specifies
type 'int' but the argument has type 'std::__1::vector<LefDefParser::defiNet,
std::__1::allocatorLefDefParser::defiNet >::size_type'
(aka 'unsigned long') [-Wformat]
CIRCUIT_FPRINTF(fout, "NETS %d ;\n", defNetStor.size());
~~ ^~~~~~~~~~~~~~~~~
%lu
/Users/cherry/import/RePlAce/src/lefdefIO.h:59:22: note: expanded from macro
'CIRCUIT_FPRINTF'
fprintf(fmt, ##VA_ARGS);
^~~~~~~~~~~
/Users/cherry/import/RePlAce/src/defParser.cpp:5021:61: warning: data argument not
used by format string [-Wformat-extra-args]
CIRCUIT_FPRINTF(stderr, "Reader returns bad status.\n", inFile[fileCt]);
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^
/Users/cherry/import/RePlAce/src/lefdefIO.h:59:22: note: expanded from macro
'CIRCUIT_FPRINTF'
fprintf(fmt, ##VA_ARGS);
^~~~~~~~~~~
/Users/cherry/import/RePlAce/src/defParser.cpp:94:12: warning: unused variable
'isSessionless' [-Wunused-variable]
static int isSessionless = 0;
^
24 warnings generated.
[ 86%] Building CXX object CMakeFiles/replace.dir/src/detailPlace.cpp.o
In file included from /Users/cherry/import/RePlAce/src/detailPlace.cpp:48:
In file included from /Users/cherry/import/RePlAce/src/bookShelfIO.h:44:
/Users/cherry/import/RePlAce/src/global.h:198:42: warning: unused parameter '_z'
[-Wunused-parameter]
inline void Set(prec _x, prec _y, prec _z) {
^
In file included from /Users/cherry/import/RePlAce/src/detailPlace.cpp:52:
In file included from /Users/cherry/import/RePlAce/src/initPlacement.h:44:
In file included from /Users/cherry/import/RePlAce/module/eigen-git-mirror/Eigen/SparseCore:11:
In file included from /Users/cherry/import/RePlAce/module/eigen-git-mirror/Eigen/Core:403:
/Users/cherry/import/RePlAce/module/eigen-git-mirror/Eigen/src/Core/util/IntegralConstant.h:57:36: warning:
unused parameter 'other' [-Wunused-parameter]
FixedInt( VariableAndFixedInt other) {
^
In file included from /Users/cherry/import/RePlAce/src/detailPlace.cpp:54:
/Users/cherry/import/RePlAce/src/opt.h:109:46: warning: struct 'NET' was previously
declared as a class [-Wmismatched-tags]
void buildRSMT_FLUTE_PerNet(struct FPOS *st, struct NET *net); // lutong
^
/Users/cherry/import/RePlAce/src/global.h:640:7: note: previous use is here
class NET {
^
/Users/cherry/import/RePlAce/src/opt.h:109:46: note: did you mean class here?
void buildRSMT_FLUTE_PerNet(struct FPOS *st, struct NET *net); // lutong
^~~~~~
class
/Users/cherry/import/RePlAce/src/opt.h:112:39: warning: struct 'NET' was previously
declared as a class [-Wmismatched-tags]
void buildRMSTPerNet(struct FPOS *st, struct NET *net);
^
/Users/cherry/import/RePlAce/src/global.h:640:7: note: previous use is here
class NET {
^
/Users/cherry/import/RePlAce/src/opt.h:112:39: note: did you mean class here?
void buildRMSTPerNet(struct FPOS *st, struct NET *net);
^~~~~~
class
/Users/cherry/import/RePlAce/src/opt.h:113:53: warning: struct 'NET' was previously
declared as a class [-Wmismatched-tags]
void buildRMSTPerNet_genTwoPinNets(struct FPOS *st, struct NET *net);
^
/Users/cherry/import/RePlAce/src/global.h:640:7: note: previous use is here
class NET {
^
/Users/cherry/import/RePlAce/src/opt.h:113:53: note: did you mean class here?
void buildRMSTPerNet_genTwoPinNets(struct FPOS *st, struct NET *net);
^~~~~~
class
/Users/cherry/import/RePlAce/src/opt.h:114:30: warning: struct 'NET' was previously
declared as a class [-Wmismatched-tags]
void buildRMSTPerNet_genRMST(struct NET *net);
^
/Users/cherry/import/RePlAce/src/global.h:640:7: note: previous use is here
class NET {
^
/Users/cherry/import/RePlAce/src/opt.h:114:30: note: did you mean class here?
void buildRMSTPerNet_genRMST(struct NET *net);
^~~~~~
class
/Users/cherry/import/RePlAce/src/opt.h:115:49: warning: struct 'NET' was previously
declared as a class [-Wmismatched-tags]
void buildRMSTPerNet_printRMST(struct FPOS *st, struct NET *net);
^
/Users/cherry/import/RePlAce/src/global.h:640:7: note: previous use is here
class NET {
^
/Users/cherry/import/RePlAce/src/opt.h:115:49: note: did you mean class here?
void buildRMSTPerNet_printRMST(struct FPOS st, struct NET net);
^~~~~~
class
/Users/cherry/import/RePlAce/src/opt.h:119:49: warning: struct 'NET' was previously
declared as a class [-Wmismatched-tags]
void calcCongPerNet_prob_based(struct FPOS st, struct NET net);
^
/Users/cherry/import/RePlAce/src/global.h:640:7: note: previous use is here
class NET {
^
/Users/cherry/import/RePlAce/src/opt.h:119:49: note: did you mean class here?
void calcCongPerNet_prob_based(struct FPOS st, struct NET net);
^~~~~~
class
/Users/cherry/import/RePlAce/src/opt.h:120:35: warning: struct 'NET' was previously
declared as a class [-Wmismatched-tags]
void calcCongPerNet_grouter_based(struct NET net);
^
/Users/cherry/import/RePlAce/src/global.h:640:7: note: previous use is here
class NET {
^
/Users/cherry/import/RePlAce/src/opt.h:120:35: note: did you mean class here?
void calcCongPerNet_grouter_based(struct NET net);
^~~~~~
class
/Users/cherry/import/RePlAce/src/detailPlace.cpp:166:36: warning: '/' within block
comment [-Wcomment]
sprintf( cmd, "ln -s %s/../router/.dat %s/", realCurDir, tier_dir);
^
/Users/cherry/import/RePlAce/src/detailPlace.cpp:184:36: warning: '/' within block
comment [-Wcomment]
sprintf( cmd, "ln -s %s/../router/.pl %s/", realCurDir, tier_dir);
^
/Users/cherry/import/RePlAce/src/detailPlace.cpp:234:36: warning: '/' within block
comment [-Wcomment]
sprintf( cmd, "ln -s %s/../router/.dat %s/", realCurDir, tier_dir);
^
/Users/cherry/import/RePlAce/src/detailPlace.cpp:252:36: warning: '/' within block
comment [-Wcomment]
sprintf( cmd, "ln -s %s/../router/.pl %s/", realCurDir, tier_dir);
^
13 warnings generated.
[ 86%] Building CXX object CMakeFiles/replace.dir/src/fft.cpp.o
In file included from /Users/cherry/import/RePlAce/src/fft.cpp:46:
In file included from /Users/cherry/import/RePlAce/src/fft.h:44:
/Users/cherry/import/RePlAce/src/global.h:198:42: warning: unused parameter '_z'
[-Wunused-parameter]
inline void Set(prec _x, prec _y, prec _z) {
^
/Users/cherry/import/RePlAce/src/fft.cpp:99:60: warning: unused parameter 'flg'
[-Wunused-parameter]
void charge_fft_init(struct POS nbin, struct FPOS stp, int flg) {
^
/Users/cherry/import/RePlAce/src/fft.cpp:217:26: warning: unused parameter 'flg'
[-Wunused-parameter]
void charge_fft_call(int flg) {
^
/Users/cherry/import/RePlAce/src/fft.cpp:730:28: warning: unused parameter 'flg'
[-Wunused-parameter]
void charge_fft_delete(int flg) {
^
4 warnings generated.
[ 86%] Building CXX object CMakeFiles/replace.dir/src/fftsg2d.cpp.o
In file included from /Users/cherry/import/RePlAce/src/fftsg2d.cpp:41:
/Users/cherry/import/RePlAce/src/global.h:198:42: warning: unused parameter '_z'
[-Wunused-parameter]
inline void Set(prec _x, prec _y, prec _z) {
^
1 warning generated.
[ 86%] Building CXX object CMakeFiles/replace.dir/src/fftsg3d.cpp.o
In file included from /Users/cherry/import/RePlAce/src/fftsg3d.cpp:41:
/Users/cherry/import/RePlAce/src/global.h:198:42: warning: unused parameter '_z'
[-Wunused-parameter]
inline void Set(prec _x, prec _y, prec _z) {
^
1 warning generated.
[ 87%] Building CXX object CMakeFiles/replace.dir/src/fftsg.cpp.o
In file included from /Users/cherry/import/RePlAce/src/fftsg.cpp:41:
/Users/cherry/import/RePlAce/src/global.h:198:42: warning: unused parameter '_z'
[-Wunused-parameter]
inline void Set(prec _x, prec _y, prec _z) {
^
1 warning generated.
[ 87%] Building CXX object CMakeFiles/replace.dir/src/gcell.cpp.o
In file included from /Users/cherry/import/RePlAce/src/gcell.cpp:49:
/Users/cherry/import/RePlAce/src/global.h:198:42: warning: unused parameter '_z'
[-Wunused-parameter]
inline void Set(prec _x, prec _y, prec _z) {
^
In file included from /Users/cherry/import/RePlAce/src/gcell.cpp:54:
In file included from /Users/cherry/import/RePlAce/src/wlen.h:45:
/Users/cherry/import/RePlAce/src/opt.h:109:46: warning: struct 'NET' was previously
declared as a class [-Wmismatched-tags]
void buildRSMT_FLUTE_PerNet(struct FPOS *st, struct NET *net); // lutong
^
/Users/cherry/import/RePlAce/src/global.h:640:7: note: previous use is here
class NET {
^
/Users/cherry/import/RePlAce/src/opt.h:109:46: note: did you mean class here?
void buildRSMT_FLUTE_PerNet(struct FPOS *st, struct NET *net); // lutong
^~~~~~
class
/Users/cherry/import/RePlAce/src/opt.h:112:39: warning: struct 'NET' was previously
declared as a class [-Wmismatched-tags]
void buildRMSTPerNet(struct FPOS *st, struct NET *net);
^
/Users/cherry/import/RePlAce/src/global.h:640:7: note: previous use is here
class NET {
^
/Users/cherry/import/RePlAce/src/opt.h:112:39: note: did you mean class here?
void buildRMSTPerNet(struct FPOS *st, struct NET *net);
^~~~~~
class
/Users/cherry/import/RePlAce/src/opt.h:113:53: warning: struct 'NET' was previously
declared as a class [-Wmismatched-tags]
void buildRMSTPerNet_genTwoPinNets(struct FPOS *st, struct NET *net);
^
/Users/cherry/import/RePlAce/src/global.h:640:7: note: previous use is here
class NET {
^
/Users/cherry/import/RePlAce/src/opt.h:113:53: note: did you mean class here?
void buildRMSTPerNet_genTwoPinNets(struct FPOS *st, struct NET *net);
^~~~~~
class
/Users/cherry/import/RePlAce/src/opt.h:114:30: warning: struct 'NET' was previously
declared as a class [-Wmismatched-tags]
void buildRMSTPerNet_genRMST(struct NET *net);
^
/Users/cherry/import/RePlAce/src/global.h:640:7: note: previous use is here
class NET {
^
/Users/cherry/import/RePlAce/src/opt.h:114:30: note: did you mean class here?
void buildRMSTPerNet_genRMST(struct NET *net);
^~~~~~
class
/Users/cherry/import/RePlAce/src/opt.h:115:49: warning: struct 'NET' was previously
declared as a class [-Wmismatched-tags]
void buildRMSTPerNet_printRMST(struct FPOS *st, struct NET *net);
^
/Users/cherry/import/RePlAce/src/global.h:640:7: note: previous use is here
class NET {
^
/Users/cherry/import/RePlAce/src/opt.h:115:49: note: did you mean class here?
void buildRMSTPerNet_printRMST(struct FPOS *st, struct NET *net);
^~~~~~
class
/Users/cherry/import/RePlAce/src/opt.h:119:49: warning: struct 'NET' was previously
declared as a class [-Wmismatched-tags]
void calcCongPerNet_prob_based(struct FPOS *st, struct NET *net);
^
/Users/cherry/import/RePlAce/src/global.h:640:7: note: previous use is here
class NET {
^
/Users/cherry/import/RePlAce/src/opt.h:119:49: note: did you mean class here?
void calcCongPerNet_prob_based(struct FPOS *st, struct NET *net);
^~~~~~
class
/Users/cherry/import/RePlAce/src/opt.h:120:35: warning: struct 'NET' was previously
declared as a class [-Wmismatched-tags]
void calcCongPerNet_grouter_based(struct NET *net);
^
/Users/cherry/import/RePlAce/src/global.h:640:7: note: previous use is here
class NET {
^
/Users/cherry/import/RePlAce/src/opt.h:120:35: note: did you mean class here?
void calcCongPerNet_grouter_based(struct NET *net);
^~~~~~
class
In file included from /Users/cherry/import/RePlAce/src/gcell.cpp:57:
/Users/cherry/import/RePlAce/src/gcell.h:52:1: warning: 'TILE' defined as a class
here but previously declared as a struct [-Wmismatched-tags]
class TILE {
^
/Users/cherry/import/RePlAce/src/global.h:760:3: note: did you mean class here?
struct TILE *tile_mat;
^~~~~~
class
/Users/cherry/import/RePlAce/src/gcell.cpp:68:3: warning: struct 'TILE' was
previously declared as a class [-Wmismatched-tags]
struct TILE *bpx = NULL;
^
/Users/cherry/import/RePlAce/src/gcell.h:52:7: note: previous use is here
class TILE {
^
/Users/cherry/import/RePlAce/src/gcell.cpp:68:3: note: did you mean class here?
struct TILE *bpx = NULL;
^~~~~~
class
/Users/cherry/import/RePlAce/src/gcell.cpp:69:3: warning: struct 'TILE' was
previously declared as a class [-Wmismatched-tags]
struct TILE *bpy = NULL;
^
/Users/cherry/import/RePlAce/src/gcell.h:52:7: note: previous use is here
class TILE {
^
/Users/cherry/import/RePlAce/src/gcell.cpp:69:3: note: did you mean class here?
struct TILE *bpy = NULL;
^~~~~~
class
/Users/cherry/import/RePlAce/src/gcell.cpp:155:3: warning: struct 'TILE' was
previously declared as a class [-Wmismatched-tags]
struct TILE *bp = tier->tile_mat;
^
/Users/cherry/import/RePlAce/src/gcell.h:52:7: note: previous use is here
class TILE {
^
/Users/cherry/import/RePlAce/src/gcell.cpp:155:3: note: did you mean class here?
struct TILE *bp = tier->tile_mat;
^~~~~~
class
/Users/cherry/import/RePlAce/src/gcell.cpp:256:3: warning: struct 'TILE' was
previously declared as a class [-Wmismatched-tags]
struct TILE *bp = NULL;
^
/Users/cherry/import/RePlAce/src/gcell.h:52:7: note: previous use is here
class TILE {
^
/Users/cherry/import/RePlAce/src/gcell.cpp:256:3: note: did you mean class here?
struct TILE *bp = NULL;
^~~~~~
class
/Users/cherry/import/RePlAce/src/gcell.cpp:279:3: warning: struct 'TILE' was
previously declared as a class [-Wmismatched-tags]
struct TILE *bp = tier->tile_mat;
^
/Users/cherry/import/RePlAce/src/gcell.h:52:7: note: previous use is here
class TILE {
^
/Users/cherry/import/RePlAce/src/gcell.cpp:279:3: note: did you mean class here?
struct TILE *bp = tier->tile_mat;
^~~~~~
class
/Users/cherry/import/RePlAce/src/gcell.cpp:315:3: warning: struct 'TILE' was
previously declared as a class [-Wmismatched-tags]
struct TILE *bp = NULL;
^
/Users/cherry/import/RePlAce/src/gcell.h:52:7: note: previous use is here
class TILE {
^
/Users/cherry/import/RePlAce/src/gcell.cpp:315:3: note: did you mean class here?
struct TILE *bp = NULL;
^~~~~~
class
/Users/cherry/import/RePlAce/src/gcell.cpp:316:3: warning: struct 'TILE' was
previously declared as a class [-Wmismatched-tags]
struct TILE *bpx = NULL;
^
/Users/cherry/import/RePlAce/src/gcell.h:52:7: note: previous use is here
class TILE {
^
/Users/cherry/import/RePlAce/src/gcell.cpp:316:3: note: did you mean class here?
struct TILE *bpx = NULL;
^~~~~~
class
/Users/cherry/import/RePlAce/src/gcell.cpp:317:3: warning: struct 'TILE' was
previously declared as a class [-Wmismatched-tags]
struct TILE *bpy = NULL;
^
/Users/cherry/import/RePlAce/src/gcell.h:52:7: note: previous use is here
class TILE {
^
/Users/cherry/import/RePlAce/src/gcell.cpp:317:3: note: did you mean class here?
struct TILE *bpy = NULL;
^~~~~~
class
/Users/cherry/import/RePlAce/src/gcell.cpp:354:8: warning: struct 'TILE' was
previously declared as a class [-Wmismatched-tags]
(struct TILE *)mkl_malloc(sizeof(struct TILE) * tier->tot_tile_cnt, 64);
^
/Users/cherry/import/RePlAce/src/gcell.h:52:7: note: previous use is here
class TILE {
^
/Users/cherry/import/RePlAce/src/gcell.cpp:354:8: note: did you mean class here?
(struct TILE *)mkl_malloc(sizeof(struct TILE) * tier->tot_tile_cnt, 64);
^~~~~~
class
/Users/cherry/import/RePlAce/src/gcell.cpp:354:40: warning: struct 'TILE' was
previously declared as a class [-Wmismatched-tags]
(struct TILE *)mkl_malloc(sizeof(struct TILE) * tier->tot_tile_cnt, 64);
^
/Users/cherry/import/RePlAce/src/gcell.h:52:7: note: previous use is here
class TILE {
^
/Users/cherry/import/RePlAce/src/gcell.cpp:354:40: note: did you mean class here?
(struct TILE *)mkl_malloc(sizeof(struct TILE) * tier->tot_tile_cnt, 64);
^~~~~~
class
19 warnings generated.
[ 87%] Building CXX object CMakeFiles/replace.dir/src/initPlacement.cpp.o
In file included from /Users/cherry/import/RePlAce/src/initPlacement.cpp:48:
/Users/cherry/import/RePlAce/src/global.h:198:42: warning: unused parameter '_z'
[-Wunused-parameter]
inline void Set(prec _x, prec _y, prec _z) {
^
In file included from /Users/cherry/import/RePlAce/src/initPlacement.cpp:49:
In file included from /Users/cherry/import/RePlAce/src/initPlacement.h:44:
In file included from /Users/cherry/import/RePlAce/module/eigen-git-mirror/Eigen/SparseCore:11:
In file included from /Users/cherry/import/RePlAce/module/eigen-git-mirror/Eigen/Core:403:
/Users/cherry/import/RePlAce/module/eigen-git-mirror/Eigen/src/Core/util/IntegralConstant.h:57:36: warning:
unused parameter 'other' [-Wunused-parameter]
FixedInt( VariableAndFixedInt other) {
^
In file included from /Users/cherry/import/RePlAce/src/initPlacement.cpp:55:
In file included from /Users/cherry/import/RePlAce/module/eigen-git-mirror/unsupported/Eigen/IterativeSolvers:36:
In file included from /Users/cherry/import/RePlAce/module/eigen-git-mirror/unsupported/Eigen/src/IterativeSolvers/DGMRES.h:13:
In file included from /Users/cherry/import/RePlAce/module/eigen-git-mirror/Eigen/Eigenvalues:18:
In file included from /Users/cherry/import/RePlAce/module/eigen-git-mirror/Eigen/LU:44:
/Users/cherry/import/RePlAce/module/eigen-git-mirror/Eigen/src/LU/arch/Inverse_SSE.h:142:45: warning:
cast from 'const unsigned int *' to 'float ' drops const qualifier
[-Wcast-qual]
rd = _mm_xor_ps(rd, _mm_load_ps((float)_Sign_PNNP));
^
/Users/cherry/import/RePlAce/src/initPlacement.cpp:63:7: warning: unused variable
'x_iter' [-Wunused-variable]
int x_iter = 0, y_iter = 0;
^
/Users/cherry/import/RePlAce/src/initPlacement.cpp:65:8: warning: unused variable
'tol' [-Wunused-variable]
prec tol = 0.000001;
^
/Users/cherry/import/RePlAce/src/initPlacement.cpp:61:7: warning: unused variable
'itol' [-Wunused-variable]
int itol = 1;
^
/Users/cherry/import/RePlAce/src/initPlacement.cpp:63:19: warning: unused variable
'y_iter' [-Wunused-variable]
int x_iter = 0, y_iter = 0;
^
7 warnings generated.
[ 88%] Building CXX object CMakeFiles/replace.dir/src/lefdefIO.cpp.o
In file included from /Users/cherry/import/RePlAce/src/lefdefIO.cpp:49:
/Users/cherry/import/RePlAce/src/global.h:198:42: warning: unused parameter '_z'
[-Wunused-parameter]
inline void Set(prec _x, prec _y, prec _z) {
^
In file included from /Users/cherry/import/RePlAce/src/lefdefIO.cpp:55:
/Users/cherry/import/RePlAce/src/timing.h:213:3: warning: control may reach end of
non-void function [-Wreturn-type]
}
^
/Users/cherry/import/RePlAce/src/timing.h:350:9: warning: field '_terms' will be
initialized after field '_nets' [-Wreorder]
_terms(terms),
^
/Users/cherry/import/RePlAce/src/timing.h:356:9: warning: field '_tPinName' will be
initialized after field '_unitX' [-Wreorder]
_tPinName(tPinName),
^
/Users/cherry/import/RePlAce/src/lefdefIO.cpp:129:22: warning: cast from
'const char *' to 'char ' drops const qualifier [-Wcast-qual]
return ((char)"N");
^
/Users/cherry/import/RePlAce/src/lefdefIO.cpp:131:22: warning: cast from
'const char *' to 'char ' drops const qualifier [-Wcast-qual]
return ((char)"W");
^
/Users/cherry/import/RePlAce/src/lefdefIO.cpp:133:22: warning: cast from
'const char *' to 'char ' drops const qualifier [-Wcast-qual]
return ((char)"S");
^
/Users/cherry/import/RePlAce/src/lefdefIO.cpp:135:22: warning: cast from
'const char *' to 'char ' drops const qualifier [-Wcast-qual]
return ((char)"E");
^
/Users/cherry/import/RePlAce/src/lefdefIO.cpp:137:22: warning: cast from
'const char *' to 'char ' drops const qualifier [-Wcast-qual]
return ((char)"FN");
^
/Users/cherry/import/RePlAce/src/lefdefIO.cpp:139:22: warning: cast from
'const char *' to 'char ' drops const qualifier [-Wcast-qual]
return ((char)"FW");
^
/Users/cherry/import/RePlAce/src/lefdefIO.cpp:141:22: warning: cast from
'const char *' to 'char ' drops const qualifier [-Wcast-qual]
return ((char)"FS");
^
/Users/cherry/import/RePlAce/src/lefdefIO.cpp:143:22: warning: cast from
'const char *' to 'char ' drops const qualifier [-Wcast-qual]
return ((char)"FE");
^
/Users/cherry/import/RePlAce/src/lefdefIO.cpp:145:18: warning: cast from
'const char *' to 'char ' drops const qualifier [-Wcast-qual]
return ((char)"BOGUS");
^
/Users/cherry/import/RePlAce/src/lefdefIO.cpp:169:1: warning: control may reach end
of non-void function [-Wreturn-type]
}
^
/Users/cherry/import/RePlAce/src/lefdefIO.cpp:193:1: warning: control may reach end
of non-void function [-Wreturn-type]
}
^
/Users/cherry/import/RePlAce/src/lefdefIO.cpp:212:1: warning: control may reach end
of non-void function [-Wreturn-type]
}
^
/Users/cherry/import/RePlAce/src/lefdefIO.cpp:348:7: warning: unused variable
'siteSizeX' [-Wunused-variable]
int siteSizeX = INT_CONVERT( l2d * __ckt.lefSiteStor[sitePtr->second].sizeX() );
^
/Users/cherry/import/RePlAce/src/lefdefIO.cpp:813:9: warning: unused variable
'macroIdx' [-Wunused-variable]
int macroIdx = macroPtr->second;
^
/Users/cherry/import/RePlAce/src/lefdefIO.cpp:822:10: warning: unused variable
'shapeFound' [-Wunused-variable]
bool shapeFound =
^
/Users/cherry/import/RePlAce/src/lefdefIO.cpp:1634:7: warning: unused variable
'cNetIdx' [-Wunused-variable]
int cNetIdx = 0;
^
/Users/cherry/import/RePlAce/src/lefdefIO.cpp:1991:13: warning: unused variable
'termIdx' [-Wunused-variable]
int termIdx = mtPtr->second.second;
^
21 warnings generated.
[ 88%] Building CXX object CMakeFiles/replace.dir/src/lefParser.cpp.o
In file included from /Users/cherry/import/RePlAce/src/lefParser.cpp:89:
In file included from /Users/cherry/import/RePlAce/src/lefdefIO.h:86:
/Users/cherry/import/RePlAce/src/global.h:198:42: warning: unused parameter '_z'
[-Wunused-parameter]
inline void Set(prec _x, prec _y, prec _z) {
^
/Users/cherry/import/RePlAce/src/lefParser.cpp:145:22: warning: cast from
'const char *' to 'char ' drops const qualifier [-Wcast-qual]
return ((char)"N");
^
/Users/cherry/import/RePlAce/src/lefParser.cpp:147:22: warning: cast from
'const char *' to 'char ' drops const qualifier [-Wcast-qual]
return ((char)"W");
^
/Users/cherry/import/RePlAce/src/lefParser.cpp:149:22: warning: cast from
'const char *' to 'char ' drops const qualifier [-Wcast-qual]
return ((char)"S");
^
/Users/cherry/import/RePlAce/src/lefParser.cpp:151:22: warning: cast from
'const char *' to 'char ' drops const qualifier [-Wcast-qual]
return ((char)"E");
^
/Users/cherry/import/RePlAce/src/lefParser.cpp:153:22: warning: cast from
'const char *' to 'char ' drops const qualifier [-Wcast-qual]
return ((char)"FN");
^
/Users/cherry/import/RePlAce/src/lefParser.cpp:155:22: warning: cast from
'const char *' to 'char ' drops const qualifier [-Wcast-qual]
return ((char)"FW");
^
/Users/cherry/import/RePlAce/src/lefParser.cpp:157:22: warning: cast from
'const char *' to 'char ' drops const qualifier [-Wcast-qual]
return ((char)"FS");
^
/Users/cherry/import/RePlAce/src/lefParser.cpp:159:22: warning: cast from
'const char *' to 'char ' drops const qualifier [-Wcast-qual]
return ((char)"FE");
^
/Users/cherry/import/RePlAce/src/lefParser.cpp:161:18: warning: cast from
'const char *' to 'char ' drops const qualifier [-Wcast-qual]
return ((char)"BOGUS");
^
/Users/cherry/import/RePlAce/src/lefParser.cpp:1819:49: warning: cast from
'const char *' to 'char ' drops const qualifier [-Wcast-qual]
printf("%s : %s\n", lefrGetUserData(), (char)msg);
^
/Users/cherry/import/RePlAce/src/lefParser.cpp:1823:49: warning: cast from
'const char *' to 'char ' drops const qualifier [-Wcast-qual]
printf("%s : %s\n", lefrGetUserData(), (char)msg);
^
/Users/cherry/import/RePlAce/src/lefParser.cpp:3221:63: warning: data argument not
used by format string [-Wformat-extra-args]
CIRCUIT_FPRINTF(stderr, "Reader returns bad status.\n", lefName.c_str());
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^
/Users/cherry/import/RePlAce/src/lefdefIO.h:59:22: note: expanded from macro
'CIRCUIT_FPRINTF'
fprintf(fmt, ##VA_ARGS);
^~~~~~~~~~~
13 warnings generated.
[ 88%] Building CXX object CMakeFiles/replace.dir/src/macro.cpp.o
In file included from /Users/cherry/import/RePlAce/src/macro.cpp:45:
In file included from /Users/cherry/import/RePlAce/src/bookShelfIO.h:44:
/Users/cherry/import/RePlAce/src/global.h:198:42: warning: unused parameter '_z'
[-Wunused-parameter]
inline void Set(prec _x, prec _y, prec _z) {
^
In file included from /Users/cherry/import/RePlAce/src/macro.cpp:50:
/Users/cherry/import/RePlAce/src/opt.h:109:46: warning: struct 'NET' was previously
declared as a class [-Wmismatched-tags]
void buildRSMT_FLUTE_PerNet(struct FPOS *st, struct NET *net); // lutong
^
/Users/cherry/import/RePlAce/src/global.h:640:7: note: previous use is here
class NET {
^
/Users/cherry/import/RePlAce/src/opt.h:109:46: note: did you mean class here?
void buildRSMT_FLUTE_PerNet(struct FPOS *st, struct NET *net); // lutong
^~~~~~
class
/Users/cherry/import/RePlAce/src/opt.h:112:39: warning: struct 'NET' was previously
declared as a class [-Wmismatched-tags]
void buildRMSTPerNet(struct FPOS *st, struct NET *net);
^
/Users/cherry/import/RePlAce/src/global.h:640:7: note: previous use is here
class NET {
^
/Users/cherry/import/RePlAce/src/opt.h:112:39: note: did you mean class here?
void buildRMSTPerNet(struct FPOS *st, struct NET *net);
^~~~~~
class
/Users/cherry/import/RePlAce/src/opt.h:113:53: warning: struct 'NET' was previously
declared as a class [-Wmismatched-tags]
void buildRMSTPerNet_genTwoPinNets(struct FPOS *st, struct NET *net);
^
/Users/cherry/import/RePlAce/src/global.h:640:7: note: previous use is here
class NET {
^
/Users/cherry/import/RePlAce/src/opt.h:113:53: note: did you mean class here?
void buildRMSTPerNet_genTwoPinNets(struct FPOS *st, struct NET *net);
^~~~~~
class
/Users/cherry/import/RePlAce/src/opt.h:114:30: warning: struct 'NET' was previously
declared as a class [-Wmismatched-tags]
void buildRMSTPerNet_genRMST(struct NET *net);
^
/Users/cherry/import/RePlAce/src/global.h:640:7: note: previous use is here
class NET {
^
/Users/cherry/import/RePlAce/src/opt.h:114:30: note: did you mean class here?
void buildRMSTPerNet_genRMST(struct NET *net);
^~~~~~
class
/Users/cherry/import/RePlAce/src/opt.h:115:49: warning: struct 'NET' was previously
declared as a class [-Wmismatched-tags]
void buildRMSTPerNet_printRMST(struct FPOS *st, struct NET *net);
^
/Users/cherry/import/RePlAce/src/global.h:640:7: note: previous use is here
class NET {
^
/Users/cherry/import/RePlAce/src/opt.h:115:49: note: did you mean class here?
void buildRMSTPerNet_printRMST(struct FPOS *st, struct NET *net);
^~~~~~
class
/Users/cherry/import/RePlAce/src/opt.h:119:49: warning: struct 'NET' was previously
declared as a class [-Wmismatched-tags]
void calcCongPerNet_prob_based(struct FPOS *st, struct NET *net);
^
/Users/cherry/import/RePlAce/src/global.h:640:7: note: previous use is here
class NET {
^
/Users/cherry/import/RePlAce/src/opt.h:119:49: note: did you mean class here?
void calcCongPerNet_prob_based(struct FPOS *st, struct NET *net);
^~~~~~
class
/Users/cherry/import/RePlAce/src/opt.h:120:35: warning: struct 'NET' was previously
declared as a class [-Wmismatched-tags]
void calcCongPerNet_grouter_based(struct NET *net);
^
/Users/cherry/import/RePlAce/src/global.h:640:7: note: previous use is here
class NET {
^
/Users/cherry/import/RePlAce/src/opt.h:120:35: note: did you mean class here?
void calcCongPerNet_grouter_based(struct NET *net);
^~~~~~
class
/Users/cherry/import/RePlAce/src/macro.cpp:132:18: warning: unused variable 'mac'
[-Wunused-variable]
struct MODULE *mac = NULL;
^
/Users/cherry/import/RePlAce/src/macro.cpp:193:48: warning: format specifies type
'double' but the argument has type 'int' [-Wformat]
total_hpwl.x, total_hpwl.y, tot_mac_den, tot_mac_ovlp,
^~~~~~~~~~~~
/Users/cherry/import/RePlAce/src/macro.cpp:194:7: warning: format specifies type
'double' but the argument has type 'int' [-Wformat]
tot_accept_cnt, tot_reject_cnt);
^~~~~~~~~~~~~~
/Users/cherry/import/RePlAce/src/macro.cpp:190:28: warning: more '%' conversions
than data arguments [-Wformat]
"\033[36m%d\033[0m, %d, %d \n",
~^
/Users/cherry/import/RePlAce/src/macro.cpp:183:18: warning: unused variable 'mac'
[-Wunused-variable]
struct MODULE *mac = NULL;
^
/Users/cherry/import/RePlAce/src/macro.cpp:180:21: warning: unused parameter 'iter'
[-Wunused-parameter]
void sa_mac_leg(int iter) {
^
/Users/cherry/import/RePlAce/src/macro.cpp:560:8: warning: unused variable
'mac_cnt_sum' [-Wunused-variable]
prec mac_cnt_sum = fp_sum(avg_mac_cnt_per_dim);
^
/Users/cherry/import/RePlAce/src/macro.cpp:660:36: warning: cast from
'const void *' to 'NODE *' drops const qualifier [-Wcast-qual]
struct NODE *aa = (struct NODE *)a;
^
/Users/cherry/import/RePlAce/src/macro.cpp:661:36: warning: cast from
'const void *' to 'NODE *' drops const qualifier [-Wcast-qual]
struct NODE *bb = (struct NODE *)b;
^
/Users/cherry/import/RePlAce/src/macro.cpp:667:20: warning: cast from
'const void *' to 'int *' drops const qualifier [-Wcast-qual]
int *aa = (int *)a;
^
/Users/cherry/import/RePlAce/src/macro.cpp:668:20: warning: cast from
'const void *' to 'int *' drops const qualifier [-Wcast-qual]
int *bb = (int *)b;
^
/Users/cherry/import/RePlAce/src/macro.cpp:924:42: warning: cast from
'const void *' to 'MODULE **' drops const qualifier [-Wcast-qual]
struct MODULE **aa = (struct MODULE **)a;
^
/Users/cherry/import/RePlAce/src/macro.cpp:925:42: warning: cast from
'const void *' to 'MODULE **' drops const qualifier [-Wcast-qual]
struct MODULE **bb = (struct MODULE **)b;
^
21 warnings generated.
[ 88%] Building CXX object CMakeFiles/replace.dir/src/main.cpp.o
In file included from /Users/cherry/import/RePlAce/src/main.cpp:52:
In file included from /Users/cherry/import/RePlAce/src/bookShelfIO.h:44:
/Users/cherry/import/RePlAce/src/global.h:198:42: warning: unused parameter '_z'
[-Wunused-parameter]
inline void Set(prec _x, prec _y, prec _z) {
^
In file included from /Users/cherry/import/RePlAce/src/main.cpp:58:
In file included from /Users/cherry/import/RePlAce/src/initPlacement.h:44:
In file included from /Users/cherry/import/RePlAce/module/eigen-git-mirror/Eigen/SparseCore:11:
In file included from /Users/cherry/import/RePlAce/module/eigen-git-mirror/Eigen/Core:403:
/Users/cherry/import/RePlAce/module/eigen-git-mirror/Eigen/src/Core/util/IntegralConstant.h:57:36: warning:
unused parameter 'other' [-Wunused-parameter]
FixedInt( VariableAndFixedInt other) {
^
In file included from /Users/cherry/import/RePlAce/src/main.cpp:60:
/Users/cherry/import/RePlAce/src/opt.h:109:46: warning: struct 'NET' was previously
declared as a class [-Wmismatched-tags]
void buildRSMT_FLUTE_PerNet(struct FPOS *st, struct NET *net); // lutong
^
/Users/cherry/import/RePlAce/src/global.h:640:7: note: previous use is here
class NET {
^
/Users/cherry/import/RePlAce/src/opt.h:109:46: note: did you mean class here?
void buildRSMT_FLUTE_PerNet(struct FPOS *st, struct NET *net); // lutong
^~~~~~
class
/Users/cherry/import/RePlAce/src/opt.h:112:39: warning: struct 'NET' was previously
declared as a class [-Wmismatched-tags]
void buildRMSTPerNet(struct FPOS *st, struct NET *net);
^
/Users/cherry/import/RePlAce/src/global.h:640:7: note: previous use is here
class NET {
^
/Users/cherry/import/RePlAce/src/opt.h:112:39: note: did you mean class here?
void buildRMSTPerNet(struct FPOS *st, struct NET *net);
^~~~~~
class
/Users/cherry/import/RePlAce/src/opt.h:113:53: warning: struct 'NET' was previously
declared as a class [-Wmismatched-tags]
void buildRMSTPerNet_genTwoPinNets(struct FPOS *st, struct NET *net);
^
/Users/cherry/import/RePlAce/src/global.h:640:7: note: previous use is here
class NET {
^
/Users/cherry/import/RePlAce/src/opt.h:113:53: note: did you mean class here?
void buildRMSTPerNet_genTwoPinNets(struct FPOS *st, struct NET *net);
^~~~~~
class
/Users/cherry/import/RePlAce/src/opt.h:114:30: warning: struct 'NET' was previously
declared as a class [-Wmismatched-tags]
void buildRMSTPerNet_genRMST(struct NET *net);
^
/Users/cherry/import/RePlAce/src/global.h:640:7: note: previous use is here
class NET {
^
/Users/cherry/import/RePlAce/src/opt.h:114:30: note: did you mean class here?
void buildRMSTPerNet_genRMST(struct NET *net);
^~~~~~
class
/Users/cherry/import/RePlAce/src/opt.h:115:49: warning: struct 'NET' was previously
declared as a class [-Wmismatched-tags]
void buildRMSTPerNet_printRMST(struct FPOS *st, struct NET *net);
^
/Users/cherry/import/RePlAce/src/global.h:640:7: note: previous use is here
class NET {
^
/Users/cherry/import/RePlAce/src/opt.h:115:49: note: did you mean class here?
void buildRMSTPerNet_printRMST(struct FPOS *st, struct NET *net);
^~~~~~
class
/Users/cherry/import/RePlAce/src/opt.h:119:49: warning: struct 'NET' was previously
declared as a class [-Wmismatched-tags]
void calcCongPerNet_prob_based(struct FPOS *st, struct NET *net);
^
/Users/cherry/import/RePlAce/src/global.h:640:7: note: previous use is here
class NET {
^
/Users/cherry/import/RePlAce/src/opt.h:119:49: note: did you mean class here?
void calcCongPerNet_prob_based(struct FPOS *st, struct NET *net);
^~~~~~
class
/Users/cherry/import/RePlAce/src/opt.h:120:35: warning: struct 'NET' was previously
declared as a class [-Wmismatched-tags]
void calcCongPerNet_grouter_based(struct NET *net);
^
/Users/cherry/import/RePlAce/src/global.h:640:7: note: previous use is here
class NET {
^
/Users/cherry/import/RePlAce/src/opt.h:120:35: note: did you mean class here?
void calcCongPerNet_grouter_based(struct NET *net);
^~~~~~
class
In file included from /Users/cherry/import/RePlAce/src/main.cpp:63:
/Users/cherry/import/RePlAce/src/timing.h:213:3: warning: control may reach end of
non-void function [-Wreturn-type]
}
^
/Users/cherry/import/RePlAce/src/timing.h:350:9: warning: field '_terms' will be
initialized after field '_nets' [-Wreorder]
_terms(terms),
^
/Users/cherry/import/RePlAce/src/timing.h:356:9: warning: field '_tPinName' will be
initialized after field '_unitX' [-Wreorder]
_tPinName(tPinName),
^
12 warnings generated.
[ 89%] Building CXX object CMakeFiles/replace.dir/src/myFunctions.cpp.o
In file included from /Users/cherry/import/RePlAce/src/myFunctions.cpp:52:
In file included from /Users/cherry/import/RePlAce/src/bin.h:44:
/Users/cherry/import/RePlAce/src/global.h:198:42: warning: unused parameter '_z'
[-Wunused-parameter]
inline void Set(prec _x, prec _y, prec _z) {
^
In file included from /Users/cherry/import/RePlAce/src/myFunctions.cpp:54:
/Users/cherry/import/RePlAce/src/opt.h:109:46: warning: struct 'NET' was previously
declared as a class [-Wmismatched-tags]
void buildRSMT_FLUTE_PerNet(struct FPOS *st, struct NET *net); // lutong
^
/Users/cherry/import/RePlAce/src/global.h:640:7: note: previous use is here
class NET {
^
/Users/cherry/import/RePlAce/src/opt.h:109:46: note: did you mean class here?
void buildRSMT_FLUTE_PerNet(struct FPOS *st, struct NET *net); // lutong
^~~~~~
class
/Users/cherry/import/RePlAce/src/opt.h:112:39: warning: struct 'NET' was previously
declared as a class [-Wmismatched-tags]
void buildRMSTPerNet(struct FPOS *st, struct NET *net);
^
/Users/cherry/import/RePlAce/src/global.h:640:7: note: previous use is here
class NET {
^
/Users/cherry/import/RePlAce/src/opt.h:112:39: note: did you mean class here?
void buildRMSTPerNet(struct FPOS *st, struct NET *net);
^~~~~~
class
/Users/cherry/import/RePlAce/src/opt.h:113:53: warning: struct 'NET' was previously
declared as a class [-Wmismatched-tags]
void buildRMSTPerNet_genTwoPinNets(struct FPOS *st, struct NET *net);
^
/Users/cherry/import/RePlAce/src/global.h:640:7: note: previous use is here
class NET {
^
/Users/cherry/import/RePlAce/src/opt.h:113:53: note: did you mean class here?
void buildRMSTPerNet_genTwoPinNets(struct FPOS *st, struct NET *net);
^~~~~~
class
/Users/cherry/import/RePlAce/src/opt.h:114:30: warning: struct 'NET' was previously
declared as a class [-Wmismatched-tags]
void buildRMSTPerNet_genRMST(struct NET *net);
^
/Users/cherry/import/RePlAce/src/global.h:640:7: note: previous use is here
class NET {
^
/Users/cherry/import/RePlAce/src/opt.h:114:30: note: did you mean class here?
void buildRMSTPerNet_genRMST(struct NET *net);
^~~~~~
class
/Users/cherry/import/RePlAce/src/opt.h:115:49: warning: struct 'NET' was previously
declared as a class [-Wmismatched-tags]
void buildRMSTPerNet_printRMST(struct FPOS *st, struct NET *net);
^
/Users/cherry/import/RePlAce/src/global.h:640:7: note: previous use is here
class NET {
^
/Users/cherry/import/RePlAce/src/opt.h:115:49: note: did you mean class here?
void buildRMSTPerNet_printRMST(struct FPOS *st, struct NET *net);
^~~~~~
class
/Users/cherry/import/RePlAce/src/opt.h:119:49: warning: struct 'NET' was previously
declared as a class [-Wmismatched-tags]
void calcCongPerNet_prob_based(struct FPOS *st, struct NET *net);
^
/Users/cherry/import/RePlAce/src/global.h:640:7: note: previous use is here
class NET {
^
/Users/cherry/import/RePlAce/src/opt.h:119:49: note: did you mean class here?
void calcCongPerNet_prob_based(struct FPOS *st, struct NET *net);
^~~~~~
class
/Users/cherry/import/RePlAce/src/opt.h:120:35: warning: struct 'NET' was previously
declared as a class [-Wmismatched-tags]
void calcCongPerNet_grouter_based(struct NET *net);
^
/Users/cherry/import/RePlAce/src/global.h:640:7: note: previous use is here
class NET {
^
/Users/cherry/import/RePlAce/src/opt.h:120:35: note: did you mean class here?
void calcCongPerNet_grouter_based(struct NET *net);
^~~~~~
class
/Users/cherry/import/RePlAce/src/myFunctions.cpp:289:42: warning: cast from
'const void *' to 'MODULE **' drops const qualifier [-Wcast-qual]
struct MODULE **aa = (struct MODULE **)a;
^
/Users/cherry/import/RePlAce/src/myFunctions.cpp:290:42: warning: cast from
'const void *' to 'MODULE **' drops const qualifier [-Wcast-qual]
struct MODULE **bb = (struct MODULE **)b;
^
10 warnings generated.
[ 89%] Building CXX object CMakeFiles/replace.dir/src/ns.cpp.o
In file included from /Users/cherry/import/RePlAce/src/ns.cpp:51:
In file included from /Users/cherry/import/RePlAce/src/bookShelfIO.h:44:
/Users/cherry/import/RePlAce/src/global.h:198:42: warning: unused parameter '_z'
[-Wunused-parameter]
inline void Set(prec _x, prec _y, prec _z) {
^
In file included from /Users/cherry/import/RePlAce/src/ns.cpp:56:
In file included from /Users/cherry/import/RePlAce/src/ns.h:45:
/Users/cherry/import/RePlAce/src/opt.h:109:46: warning: struct 'NET' was previously
declared as a class [-Wmismatched-tags]
void buildRSMT_FLUTE_PerNet(struct FPOS *st, struct NET *net); // lutong
^
/Users/cherry/import/RePlAce/src/global.h:640:7: note: previous use is here
class NET {
^
/Users/cherry/import/RePlAce/src/opt.h:109:46: note: did you mean class here?
void buildRSMT_FLUTE_PerNet(struct FPOS *st, struct NET *net); // lutong
^~~~~~
class
/Users/cherry/import/RePlAce/src/opt.h:112:39: warning: struct 'NET' was previously
declared as a class [-Wmismatched-tags]
void buildRMSTPerNet(struct FPOS *st, struct NET *net);
^
/Users/cherry/import/RePlAce/src/global.h:640:7: note: previous use is here
class NET {
^
/Users/cherry/import/RePlAce/src/opt.h:112:39: note: did you mean class here?
void buildRMSTPerNet(struct FPOS *st, struct NET *net);
^~~~~~
class
/Users/cherry/import/RePlAce/src/opt.h:113:53: warning: struct 'NET' was previously
declared as a class [-Wmismatched-tags]
void buildRMSTPerNet_genTwoPinNets(struct FPOS *st, struct NET *net);
^
/Users/cherry/import/RePlAce/src/global.h:640:7: note: previous use is here
class NET {
^
/Users/cherry/import/RePlAce/src/opt.h:113:53: note: did you mean class here?
void buildRMSTPerNet_genTwoPinNets(struct FPOS *st, struct NET *net);
^~~~~~
class
/Users/cherry/import/RePlAce/src/opt.h:114:30: warning: struct 'NET' was previously
declared as a class [-Wmismatched-tags]
void buildRMSTPerNet_genRMST(struct NET *net);
^
/Users/cherry/import/RePlAce/src/global.h:640:7: note: previous use is here
class NET {
^
/Users/cherry/import/RePlAce/src/opt.h:114:30: note: did you mean class here?
void buildRMSTPerNet_genRMST(struct NET *net);
^~~~~~
class
/Users/cherry/import/RePlAce/src/opt.h:115:49: warning: struct 'NET' was previously
declared as a class [-Wmismatched-tags]
void buildRMSTPerNet_printRMST(struct FPOS *st, struct NET *net);
^
/Users/cherry/import/RePlAce/src/global.h:640:7: note: previous use is here
class NET {
^
/Users/cherry/import/RePlAce/src/opt.h:115:49: note: did you mean class here?
void buildRMSTPerNet_printRMST(struct FPOS *st, struct NET *net);
^~~~~~
class
/Users/cherry/import/RePlAce/src/opt.h:119:49: warning: struct 'NET' was previously
declared as a class [-Wmismatched-tags]
void calcCongPerNet_prob_based(struct FPOS *st, struct NET *net);
^
/Users/cherry/import/RePlAce/src/global.h:640:7: note: previous use is here
class NET {
^
/Users/cherry/import/RePlAce/src/opt.h:119:49: note: did you mean class here?
void calcCongPerNet_prob_based(struct FPOS *st, struct NET *net);
^~~~~~
class
/Users/cherry/import/RePlAce/src/opt.h:120:35: warning: struct 'NET' was previously
declared as a class [-Wmismatched-tags]
void calcCongPerNet_grouter_based(struct NET *net);
^
/Users/cherry/import/RePlAce/src/global.h:640:7: note: previous use is here
class NET {
^
/Users/cherry/import/RePlAce/src/opt.h:120:35: note: did you mean class here?
void calcCongPerNet_grouter_based(struct NET *net);
^~~~~~
class
In file included from /Users/cherry/import/RePlAce/src/ns.cpp:56:
In file included from /Users/cherry/import/RePlAce/src/ns.h:46:
/Users/cherry/import/RePlAce/src/timing.h:213:3: warning: control may reach end of
non-void function [-Wreturn-type]
}
^
/Users/cherry/import/RePlAce/src/timing.h:350:9: warning: field '_terms' will be
initialized after field '_nets' [-Wreorder]
_terms(terms),
^
/Users/cherry/import/RePlAce/src/timing.h:356:9: warning: field '_tPinName' will be
initialized after field '_unitX' [-Wreorder]
_tPinName(tPinName),
^
/Users/cherry/import/RePlAce/src/ns.cpp:1294:30: warning: unused variable 'zz'
[-Wunused-variable]
prec zx = 0.0f, zy = 0.0f, zz = 0.0f;
^
/Users/cherry/import/RePlAce/src/ns.cpp:1680:35: warning: unused parameter 'iter'
[-Wunused-parameter]
void myNesterov::PlotNesterov(int iter) {
^
In file included from /Users/cherry/import/RePlAce/src/ns.cpp:56:
/Users/cherry/import/RePlAce/src/ns.h:81:9: warning: private field 'alphaArrCD' is
not used [-Wunused-private-field]
prec *alphaArrCD;
^
/Users/cherry/import/RePlAce/src/ns.h:82:9: warning: private field 'deltaArrCD' is
not used [-Wunused-private-field]
prec *deltaArrCD;
^
/Users/cherry/import/RePlAce/src/ns.h:101:8: warning: private field
'before100iter_alpha' is not used [-Wunused-private-field]
prec before100iter_alpha;
^
/Users/cherry/import/RePlAce/src/ns.h:102:8: warning: private field
'before100iter_delta' is not used [-Wunused-private-field]
prec before100iter_delta;
^
17 warnings generated.
[ 89%] Building CXX object CMakeFiles/replace.dir/src/opt.cpp.o
In file included from /Users/cherry/import/RePlAce/src/opt.cpp:48:
In file included from /Users/cherry/import/RePlAce/src/bookShelfIO.h:44:
/Users/cherry/import/RePlAce/src/global.h:198:42: warning: unused parameter '_z'
[-Wunused-parameter]
inline void Set(prec _x, prec _y, prec _z) {
^
In file included from /Users/cherry/import/RePlAce/src/opt.cpp:51:
/Users/cherry/import/RePlAce/src/gcell.h:52:1: warning: 'TILE' defined as a class
here but previously declared as a struct [-Wmismatched-tags]
class TILE {
^
/Users/cherry/import/RePlAce/src/global.h:760:3: note: did you mean class here?
struct TILE *tile_mat;
^~~~~~
class
In file included from /Users/cherry/import/RePlAce/src/opt.cpp:54:
In file included from /Users/cherry/import/RePlAce/src/ns.h:45:
/Users/cherry/import/RePlAce/src/opt.h:104:53: warning: struct 'TILE' was
previously declared as a class [-Wmismatched-tags]
void cell_calc_new_area_per_Cell(struct CELL *cell, struct TILE *bp);
^
/Users/cherry/import/RePlAce/src/gcell.h:52:7: note: previous use is here
class TILE {
^
/Users/cherry/import/RePlAce/src/opt.h:104:53: note: did you mean class here?
void cell_calc_new_area_per_Cell(struct CELL *cell, struct TILE *bp);
^~~~~~
class
/Users/cherry/import/RePlAce/src/opt.h:109:46: warning: struct 'NET' was previously
declared as a class [-Wmismatched-tags]
void buildRSMT_FLUTE_PerNet(struct FPOS *st, struct NET *net); // lutong
^
/Users/cherry/import/RePlAce/src/global.h:640:7: note: previous use is here
class NET {
^
/Users/cherry/import/RePlAce/src/opt.h:109:46: note: did you mean class here?
void buildRSMT_FLUTE_PerNet(struct FPOS *st, struct NET *net); // lutong
^~~~~~
class
/Users/cherry/import/RePlAce/src/opt.h:112:39: warning: struct 'NET' was previously
declared as a class [-Wmismatched-tags]
void buildRMSTPerNet(struct FPOS *st, struct NET *net);
^
/Users/cherry/import/RePlAce/src/global.h:640:7: note: previous use is here
class NET {
^
/Users/cherry/import/RePlAce/src/opt.h:112:39: note: did you mean class here?
void buildRMSTPerNet(struct FPOS *st, struct NET *net);
^~~~~~
class
/Users/cherry/import/RePlAce/src/opt.h:113:53: warning: struct 'NET' was previously
declared as a class [-Wmismatched-tags]
void buildRMSTPerNet_genTwoPinNets(struct FPOS *st, struct NET *net);
^
/Users/cherry/import/RePlAce/src/global.h:640:7: note: previous use is here
class NET {
^
/Users/cherry/import/RePlAce/src/opt.h:113:53: note: did you mean class here?
void buildRMSTPerNet_genTwoPinNets(struct FPOS *st, struct NET *net);
^~~~~~
class
/Users/cherry/import/RePlAce/src/opt.h:114:30: warning: struct 'NET' was previously
declared as a class [-Wmismatched-tags]
void buildRMSTPerNet_genRMST(struct NET *net);
^
/Users/cherry/import/RePlAce/src/global.h:640:7: note: previous use is here
class NET {
^
/Users/cherry/import/RePlAce/src/opt.h:114:30: note: did you mean class here?
void buildRMSTPerNet_genRMST(struct NET *net);
^~~~~~
class
/Users/cherry/import/RePlAce/src/opt.h:115:49: warning: struct 'NET' was previously
declared as a class [-Wmismatched-tags]
void buildRMSTPerNet_printRMST(struct FPOS *st, struct NET *net);
^
/Users/cherry/import/RePlAce/src/global.h:640:7: note: previous use is here
class NET {
^
/Users/cherry/import/RePlAce/src/opt.h:115:49: note: did you mean class here?
void buildRMSTPerNet_printRMST(struct FPOS *st, struct NET *net);
^~~~~~
class
/Users/cherry/import/RePlAce/src/opt.h:119:49: warning: struct 'NET' was previously
declared as a class [-Wmismatched-tags]
void calcCongPerNet_prob_based(struct FPOS *st, struct NET *net);
^
/Users/cherry/import/RePlAce/src/global.h:640:7: note: previous use is here
class NET {
^
/Users/cherry/import/RePlAce/src/opt.h:119:49: note: did you mean class here?
void calcCongPerNet_prob_based(struct FPOS *st, struct NET *net);
^~~~~~
class
/Users/cherry/import/RePlAce/src/opt.h:120:35: warning: struct 'NET' was previously
declared as a class [-Wmismatched-tags]
void calcCongPerNet_grouter_based(struct NET *net);
^
/Users/cherry/import/RePlAce/src/global.h:640:7: note: previous use is here
class NET {
^
/Users/cherry/import/RePlAce/src/opt.h:120:35: note: did you mean class here?
void calcCongPerNet_grouter_based(struct NET *net);
^~~~~~
class
/Users/cherry/import/RePlAce/src/opt.h:131:49: warning: struct 'TILE' was
previously declared as a class [-Wmismatched-tags]
void cell_inflation_per_Cell(struct CELL *cell, struct TILE *bp);
^
/Users/cherry/import/RePlAce/src/gcell.h:52:7: note: previous use is here
class TILE {
^
/Users/cherry/import/RePlAce/src/opt.h:131:49: note: did you mean class here?
void cell_inflation_per_Cell(struct CELL *cell, struct TILE *bp);
^~~~~~
class
In file included from /Users/cherry/import/RePlAce/src/opt.cpp:54:
In file included from /Users/cherry/import/RePlAce/src/ns.h:46:
/Users/cherry/import/RePlAce/src/timing.h:213:3: warning: control may reach end of
non-void function [-Wreturn-type]
}
^
/Users/cherry/import/RePlAce/src/timing.h:350:9: warning: field '_terms' will be
initialized after field '_nets' [-Wreorder]
_terms(terms),
^
/Users/cherry/import/RePlAce/src/timing.h:356:9: warning: field '_tPinName' will be
initialized after field '_unitX' [-Wreorder]
_tPinName(tPinName),
^
/Users/cherry/import/RePlAce/src/opt.cpp:375:9: warning: unused variable 'fp'
[-Wunused-variable]
FILE *fp = NULL;
^
/Users/cherry/import/RePlAce/src/opt.cpp:478:3: warning: struct 'NET' was
previously declared as a class [-Wmismatched-tags]
struct NET *net = NULL;
^
/Users/cherry/import/RePlAce/src/global.h:640:7: note: previous use is here
class NET {
^
/Users/cherry/import/RePlAce/src/opt.cpp:478:3: note: did you mean class here?
struct NET *net = NULL;
^~~~~~
class
/Users/cherry/import/RePlAce/src/opt.cpp:667:34: warning: cast from 'const void *'
to 'DST *' drops const qualifier [-Wcast-qual]
struct DST *aa = (struct DST *)a;
^
/Users/cherry/import/RePlAce/src/opt.cpp:668:34: warning: cast from 'const void *'
to 'DST *' drops const qualifier [-Wcast-qual]
struct DST *bb = (struct DST *)b;
^
/Users/cherry/import/RePlAce/src/opt.cpp:1143:22: warning: cast from 'const void *'
to 'float *' drops const qualifier [-Wcast-qual]
prec *aa = (prec *)a;
^
/Users/cherry/import/RePlAce/src/opt.cpp:1144:22: warning: cast from 'const void *'
to 'float *' drops const qualifier [-Wcast-qual]
prec *bb = (prec *)b;
^
/Users/cherry/import/RePlAce/src/opt.cpp:1149:34: warning: cast from 'const void *'
to 'ABC *' drops const qualifier [-Wcast-qual]
struct ABC *aa = (struct ABC *)a;
^
/Users/cherry/import/RePlAce/src/opt.cpp:1150:34: warning: cast from 'const void *'
to 'ABC *' drops const qualifier [-Wcast-qual]
struct ABC *bb = (struct ABC *)b;
^
22 warnings generated.
[ 90%] Building CXX object CMakeFiles/replace.dir/src/plot.cpp.o
In file included from /Users/cherry/import/RePlAce/src/plot.cpp:41:
In file included from /Users/cherry/import/RePlAce/src/plot.h:46:
/Users/cherry/import/RePlAce/src/global.h:198:42: warning: unused parameter '_z'
[-Wunused-parameter]
inline void Set(prec _x, prec _y, prec _z) {
^
In file included from /Users/cherry/import/RePlAce/src/plot.cpp:44:
/Users/cherry/import/RePlAce/src/opt.h:109:46: warning: struct 'NET' was previously
declared as a class [-Wmismatched-tags]
void buildRSMT_FLUTE_PerNet(struct FPOS *st, struct NET *net); // lutong
^
/Users/cherry/import/RePlAce/src/global.h:640:7: note: previous use is here
class NET {
^
/Users/cherry/import/RePlAce/src/opt.h:109:46: note: did you mean class here?
void buildRSMT_FLUTE_PerNet(struct FPOS *st, struct NET *net); // lutong
^~~~~~
class
/Users/cherry/import/RePlAce/src/opt.h:112:39: warning: struct 'NET' was previously
declared as a class [-Wmismatched-tags]
void buildRMSTPerNet(struct FPOS *st, struct NET *net);
^
/Users/cherry/import/RePlAce/src/global.h:640:7: note: previous use is here
class NET {
^
/Users/cherry/import/RePlAce/src/opt.h:112:39: note: did you mean class here?
void buildRMSTPerNet(struct FPOS *st, struct NET *net);
^~~~~~
class
/Users/cherry/import/RePlAce/src/opt.h:113:53: warning: struct 'NET' was previously
declared as a class [-Wmismatched-tags]
void buildRMSTPerNet_genTwoPinNets(struct FPOS *st, struct NET *net);
^
/Users/cherry/import/RePlAce/src/global.h:640:7: note: previous use is here
class NET {
^
/Users/cherry/import/RePlAce/src/opt.h:113:53: note: did you mean class here?
void buildRMSTPerNet_genTwoPinNets(struct FPOS *st, struct NET *net);
^~~~~~
class
/Users/cherry/import/RePlAce/src/opt.h:114:30: warning: struct 'NET' was previously
declared as a class [-Wmismatched-tags]
void buildRMSTPerNet_genRMST(struct NET *net);
^
/Users/cherry/import/RePlAce/src/global.h:640:7: note: previous use is here
class NET {
^
/Users/cherry/import/RePlAce/src/opt.h:114:30: note: did you mean class here?
void buildRMSTPerNet_genRMST(struct NET *net);
^~~~~~
class
/Users/cherry/import/RePlAce/src/opt.h:115:49: warning: struct 'NET' was previously
declared as a class [-Wmismatched-tags]
void buildRMSTPerNet_printRMST(struct FPOS *st, struct NET *net);
^
/Users/cherry/import/RePlAce/src/global.h:640:7: note: previous use is here
class NET {
^
/Users/cherry/import/RePlAce/src/opt.h:115:49: note: did you mean class here?
void buildRMSTPerNet_printRMST(struct FPOS *st, struct NET *net);
^~~~~~
class
/Users/cherry/import/RePlAce/src/opt.h:119:49: warning: struct 'NET' was previously
declared as a class [-Wmismatched-tags]
void calcCongPerNet_prob_based(struct FPOS *st, struct NET *net);
^
/Users/cherry/import/RePlAce/src/global.h:640:7: note: previous use is here
class NET {
^
/Users/cherry/import/RePlAce/src/opt.h:119:49: note: did you mean class here?
void calcCongPerNet_prob_based(struct FPOS *st, struct NET *net);
^~~~~~
class
/Users/cherry/import/RePlAce/src/opt.h:120:35: warning: struct 'NET' was previously
declared as a class [-Wmismatched-tags]
void calcCongPerNet_grouter_based(struct NET *net);
^
/Users/cherry/import/RePlAce/src/global.h:640:7: note: previous use is here
class NET {
^
/Users/cherry/import/RePlAce/src/opt.h:120:35: note: did you mean class here?
void calcCongPerNet_grouter_based(struct NET *net);
^~~~~~
class
In file included from /Users/cherry/import/RePlAce/src/plot.cpp:46:
/Users/cherry/import/RePlAce/module/CImg/CImg.h:371:10: fatal error: 'X11/Xlib.h'
file not found