浏览代码

core/simgrid: remove never reached exit() calls

These exit() calls are useless because_STARPU_ERROR() calls abort().
I noticed this while starting to work on perf counters support with PAPI.
Samuel Pitoiset 9 年之前
父节点
当前提交
cd657c213b
共有 1 个文件被更改,包括 0 次插入3 次删除
  1. 0 3
      src/core/simgrid.c

+ 0 - 3
src/core/simgrid.c

@@ -57,7 +57,6 @@ int smpi_simulated_main_(int argc, char *argv[])
 	if (!starpu_main)
 	if (!starpu_main)
 	{
 	{
 		_STARPU_ERROR("In simgrid mode, the file containing the main() function of this application needs to be compiled with starpu.h or starpu_simgrid_wrap.h included, to properly rename it into starpu_main\n");
 		_STARPU_ERROR("In simgrid mode, the file containing the main() function of this application needs to be compiled with starpu.h or starpu_simgrid_wrap.h included, to properly rename it into starpu_main\n");
-		exit(EXIT_FAILURE);
 	}
 	}
 
 
 	return starpu_main(argc, argv);
 	return starpu_main(argc, argv);
@@ -202,7 +201,6 @@ int main(int argc, char **argv)
 	if (!starpu_main && !(smpi_main && smpi_simulated_main_))
 	if (!starpu_main && !(smpi_main && smpi_simulated_main_))
 	{
 	{
 		_STARPU_ERROR("In simgrid mode, the file containing the main() function of this application needs to be compiled with starpu.h included, to properly rename it into starpu_main\n");
 		_STARPU_ERROR("In simgrid mode, the file containing the main() function of this application needs to be compiled with starpu.h included, to properly rename it into starpu_main\n");
-		exit(EXIT_FAILURE);
 	}
 	}
 
 
 	if (_starpu_simgrid_running_smpi())
 	if (_starpu_simgrid_running_smpi())
@@ -245,7 +243,6 @@ void _starpu_simgrid_init()
 	if (!starpu_main && !(smpi_main && smpi_simulated_main_))
 	if (!starpu_main && !(smpi_main && smpi_simulated_main_))
 	{
 	{
 		_STARPU_ERROR("In simgrid mode, the file containing the main() function of this application needs to be compiled with starpu.h included, to properly rename it into starpu_main\n");
 		_STARPU_ERROR("In simgrid mode, the file containing the main() function of this application needs to be compiled with starpu.h included, to properly rename it into starpu_main\n");
-		exit(EXIT_FAILURE);
 	}
 	}
 	if (_starpu_simgrid_running_smpi())
 	if (_starpu_simgrid_running_smpi())
 	{
 	{