dg=buildSH(class);
}
- if(timer_on != 0 && dg && dg->numNodes+1>timers_tot){
+ if(timer_on != 0 && dg->numNodes+1>timers_tot){
timer_on=0;
if(my_rank==0)
fprintf(stderr,"Not enough timers. Node timeing is off. \n");
}
- if(dg && dg->numNodes>comm_size){
+ if(dg->numNodes>comm_size){
if(my_rank==0){
fprintf(stderr,"** The number of MPI processes should not be less than \n");
fprintf(stderr,"** the number of nodes in the graph\n");
MPI_Finalize();
exit(0);
}
- for(i=0;i<dg->numNodes;i++){
+ for(i=0; i<dg->numNodes; i++){
dg->node[i]->address=i;
}
if( my_rank == 0 ){
void simcall_HANDLER_process_join(smx_simcall_t simcall, smx_process_t process, double timeout)
{
if (process->finished) {
- // The process is already finished, just wake up the process right now:
+ // The joined process is already finished, just wake up the issuer process right away
simcall_process_sleep__set__result(simcall, SIMIX_DONE);
SIMIX_simcall_answer(simcall);
return;
set(optCFLAGS "")
set(warnCXXFLAGS "")
-if(enable_compile_warnings AND enable_debug)
- set(warnCFLAGS "-fno-common -Wall -Wunused -Wmissing-declarations -Wpointer-arith -Wchar-subscripts -Wcomment -Wformat -Wwrite-strings -Wno-unused-function -Wno-unused-parameter -Wno-strict-aliasing -Wno-format-nonliteral -Werror")
+if(enable_compile_warnings)
+ set(warnCFLAGS "-fno-common -Wall -Wunused -Wmissing-declarations -Wpointer-arith -Wchar-subscripts -Wcomment -Wformat -Wwrite-strings -Wno-unused-function -Wno-unused-parameter -Wno-strict-aliasing -Wno-format-nonliteral")
if(CMAKE_COMPILER_IS_GNUCC)
set(warnCFLAGS "${warnCFLAGS} -Wclobbered -Wno-error=clobbered -Wno-unused-local-typedefs -Wno-error=attributes")
endif()
set(CMAKE_JAVA_COMPILE_FLAGS "-Xlint")
endif()
+# NDEBUG gives a lot of "initialized but unused variables" errors. Don't die anyway.
+if(enable_compile_warnings AND enable_debug)
+ set(warnCFLAGS "${warnCFLAGS} -Werror")
+endif()
+
# Activate the warnings on #if FOOBAR when FOOBAR has no value
# It breaks on FreeBSD within Boost headers, so activate this only in Pure Hardcore debug mode.
if(enable_maintainer_mode)