cooperlab / NucleiCuts

An implementation of Al-Kofahi's 2010 paper on nuclear segmentation using graph cutting methods.
Other
3 stars 1 forks source link

pygco warnings #13

Open salamb opened 8 years ago

salamb commented 8 years ago

Below are warnings from building the pygco fork being used. These warnings seem to be from gco itself, though this repo has the latest version gco v3.0 as part of its repo.

GCoptimization.cpp:31:23: warning: 'GCO_CLOCKS_PER_SEC' initialized and declared 'extern' [enabled by default] extern "C" gcoclock_t GCO_CLOCKS_PER_SEC = CLOCKS_PERSEC; ^ In file included from GCoptimization.h:109:0, from GCoptimization.cpp:4: graph.cpp: In instantiation of 'Graph<captype, tcaptype, flowtype>::Graph(int, int, void ()(char)) [with captype = int; tcaptype = int; flowtype = long long int]': energy.h:187:189: required from 'Energy<captype, tcaptype, flowtype>::Energy(int, int, void ()(char)) [with captype = int; tcaptype = int; flowtype = long long int]' GCoptimization.cpp:1230:33: required from here graph.cpp:21:83: warning: deprecated conversion from string constant to 'char' [-Wwrite-strings] if (!nodes || !arcs) { if (error_function) (_errorfunction)("Not enough memory!"); exit(1); } ^ In file included from GCoptimization.h:110:0, from GCoptimization.cpp:4: maxflow.cpp: In instantiation of 'flowtype Graph<captype, tcaptype, flowtype>::maxflow(bool, Block) [with captype = int; tcaptype = int; flowtype = long long int]': energy.h:325:33: required from 'Energy<captype, tcaptype, flowtype>::TotalValue Energy<captype, tcaptype, flowtype>::minimize() [with captype = int; tcaptype = int; flowtype = long long int; Energy<captype, tcaptype, flowtype>::TotalValue = long long int]' GCoptimization.cpp:1237:37: required from here maxflow.cpp:484:145: warning: deprecated conversion from string constant to 'char_' [-Wwrite-strings] if (maxflow_iteration == 0 && reuse_trees) { if (error_function) (_error_function)("reusetrees cannot be used in the first call to maxflow()!"); exit(1); } ^ maxflow.cpp:485:126: warning: deprecated conversion from string constant to 'char' [-Wwrite-strings] if (changed_list && !reuse_trees) { if (error_function) (_error_function)("changed_list cannot be used without reuse_trees!"); exit(1); } ^ In file included from GCoptimization.h:109:0, from GCoptimization.cpp:4: graph.cpp: In instantiation of 'void Graph<captype, tcaptype, flowtype>::reallocate_arcs() [with captype = int; tcaptype = int; flowtype = long long int]': graph.h:408:43: required from 'void Graph<captype, tcaptype, flowtype>::add_edge(Graph<captype, tcaptype, flowtype>::node_id, Graph<captype, tcaptype, flowtype>::node_id, captype, captype) [with captype = int; tcaptype = int; flowtype = long long int; Graph<captype, tcaptype, flowtype>::node_id = int]' energy.h:237:3: required from 'void Energy<captype, tcaptype, flowtype>::addterm2(Energy<captype, tcaptype, flowtype>::Var, Energy<captype, tcaptype, flowtype>::Var, Energy<captype, tcaptype, flowtype>::Value, Energy<captype, tcaptype, flowtype>::Value, Energy<captype, tcaptype, flowtype>::Value, Energy<captype, tcaptype, flowtype>::Value) [with captype = int; tcaptype = int; flowtype = long long int; Energy<captype, tcaptype, flowtype>::Var = int; Energy<captype, tcaptype, flowtype>::Value = int]' GCoptimization.cpp:304:42: required from here graph.cpp:94:73: warning: deprecated conversion from string constant to 'char' [-Wwrite-strings] if (!arcs) { if (error_function) (_error_function)("Not enough memory!"); exit(1); } ^ graph.cpp: In instantiation of 'void Graph<captype, tcaptype, flowtype>::reallocate_nodes(int) [with captype = int; tcaptype = int; flowtype = long long int]': graph.h:364:54: required from 'Graph<captype, tcaptype, flowtype>::node_id Graph<captype, tcaptype, flowtype>::add_node(int) [with captype = int; tcaptype = int; flowtype = long long int; Graph<captype, tcaptype, flowtype>::node_id = int]' energy.h:198:30: required from 'Energy<captype, tcaptype, flowtype>::Var Energy<captype, tcaptype, flowtype>::addvariable(int) [with captype = int; tcaptype = int; flowtype = long long int; Energy<captype, tcaptype, flowtype>::Var = int]' GCoptimization.cpp:1140:31: required from here graph.cpp:70:74: warning: deprecated conversion from string constant to 'char' [-Wwrite-strings] if (!nodes) { if (error_function) (_errorfunction)("Not enough memory!"); exit(1); } ^ In file included from graph.h:43:0, from energy.h:77, from GCoptimization.h:108, from GCoptimization.cpp:4: block.h: In instantiation of 'Type Block::New(int) [with Type = int]': maxflow.cpp:110:36: required from 'void Graph<captype, tcaptype, flowtype>::add_to_changedlist(Graph<captype, tcaptype, flowtype>::node) [with captype = int; tcaptype = int; flowtype = long long int]' maxflow.cpp:520:27: required from 'flowtype Graph<captype, tcaptype, flowtype>::maxflow(bool, Block) [with captype = int; tcaptype = int; flowtype = long long int]' energy.h:325:33: required from 'Energy<captype, tcaptype, flowtype>::TotalValue Energy<captype, tcaptype, flowtype>::minimize() [with captype = int; tcaptype = int; flowtype = long long int; Energy<captype, tcaptype, flowtype>::TotalValue = long long int]' GCoptimization.cpp:1237:37: required from here block.h:124:76: warning: deprecated conversion from string constant to 'char' [-Wwrite-strings] if (!next) { if (error_function) (_error_function)("Not enough memory!"); exit(1); } ^ block.h: In instantiation of 'Type* DBlock::New() [with Type = Graph<int, int, long long int>::nodeptr]': maxflow.cpp:95:5: required from 'void Graph<captype, tcaptype, flowtype>::set_orphanrear(Graph<captype, tcaptype, flowtype>::node) [with captype = int; tcaptype = int; flowtype = long long int]' maxflow.cpp:183:36: required from 'void Graph<captype, tcaptype, flowtype>::maxflow_reuse_treesinit() [with captype = int; tcaptype = int; flowtype = long long int]' maxflow.cpp:487:44: required from 'flowtype Graph<captype, tcaptype, flowtype>::maxflow(bool, Block) [with captype = int; tcaptype = int; flowtype = long long int]' energy.h:325:33: required from 'Energy<captype, tcaptype, flowtype>::TotalValue Energy<captype, tcaptype, flowtype>::minimize() [with captype = int; tcaptype = int; flowtype = long long int; Energy<captype, tcaptype, flowtype>::TotalValue = long long int]' GCoptimization.cpp:1237:37: required from here block.h:223:76: warning: deprecated conversion from string constant to 'char_' [-Wwrite-strings] if (!first) { if (error_function) (_error_function)("Not enough memory!"); exit(1); }

cooperlab commented 8 years ago

@salamb I noticed this too. As much as I like to remove warnings for clean installs, we don't have time to get dragged down into fixing other people's code. You might be able to suppress these if you want to cleanup output during the build.