[PPL-devel] [GIT] ppl/ppl(master): Added '&' prefix to function identifiers that are not used to call the function.
Patricia Hill
p.m.hill at leeds.ac.uk
Tue Feb 21 12:34:48 CET 2012
Module: ppl/ppl
Branch: master
Commit: bd2ce77bf9d603c397578ad077ef4d1a30f2afee
URL: http://www.cs.unipr.it/git/gitweb.cgi?p=ppl/ppl.git;a=commit;h=bd2ce77bf9d603c397578ad077ef4d1a30f2afee
Author: Patricia Hill <p.m.hill at leeds.ac.uk>
Date: Tue Feb 21 11:29:58 2012 +0000
Added '&' prefix to function identifiers that are not used to call the function.
Detected by Eclair service funcalls.
---
demos/ppl_lcdd/ppl_lcdd.cc | 2 +-
src/Init.cc | 2 +-
src/Watchdog.cc | 2 +-
3 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/demos/ppl_lcdd/ppl_lcdd.cc b/demos/ppl_lcdd/ppl_lcdd.cc
index a4ebc92..d6f1b8e 100644
--- a/demos/ppl_lcdd/ppl_lcdd.cc
+++ b/demos/ppl_lcdd/ppl_lcdd.cc
@@ -1192,7 +1192,7 @@ main(int argc, char* argv[]) try {
#ifdef PPL_LCDD_SUPPORTS_LIMIT_ON_CPU_TIME
if (max_seconds_of_cpu_time > 0)
- set_alarm_on_cpu_time(max_seconds_of_cpu_time, timeout);
+ set_alarm_on_cpu_time(max_seconds_of_cpu_time, &timeout);
#endif // defined(PPL_LCDD_SUPPORTS_LIMIT_ON_CPU_TIME)
diff --git a/src/Init.cc b/src/Init.cc
index 7b9c53f..8997598 100644
--- a/src/Init.cc
+++ b/src/Init.cc
@@ -140,7 +140,7 @@ PPL::Init::Init() {
// ... the GMP memory allocation functions are set, ...
ppl_set_GMP_memory_allocation_functions();
// ... the default output function for Variable objects is set, ...
- Variable::set_output_function(Variable::default_output_function);
+ Variable::set_output_function(&Variable::default_output_function);
// ... the Coefficient constants are initialized, ...
Coefficient_constants_initialize();
// ... the Linear_Expression class is initialized, ...
diff --git a/src/Watchdog.cc b/src/Watchdog.cc
index 4651d63..504beee 100644
--- a/src/Watchdog.cc
+++ b/src/Watchdog.cc
@@ -237,7 +237,7 @@ PPL::Watchdog::initialize() {
sigemptyset(&mask);
struct sigaction s;
- s.sa_handler = PPL_handle_timeout;
+ s.sa_handler = &PPL_handle_timeout;
s.sa_mask = mask;
s.sa_flags = 0; // Was SA_ONESHOT: why?
More information about the PPL-devel
mailing list