[PPL-devel] [GIT] ppl/ppl(master): Avoided non-constant pointers to function.

Roberto Bagnara bagnara at cs.unipr.it
Mon Aug 20 16:52:52 CEST 2012


Module: ppl/ppl
Branch: master
Commit: b23873fe14a7204ec856aae21209eaf1cc6ea3a9
URL:    http://www.cs.unipr.it/git/gitweb.cgi?p=ppl/ppl.git;a=commit;h=b23873fe14a7204ec856aae21209eaf1cc6ea3a9

Author: Roberto Bagnara <bagnara at cs.unipr.it>
Date:   Mon Aug 20 15:49:20 2012 +0200

Avoided non-constant pointers to function.
Detected by ECLAIR service funpntr.

---

 src/Scalar_Products_defs.hh |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/src/Scalar_Products_defs.hh b/src/Scalar_Products_defs.hh
index f58a816..4c001d7 100644
--- a/src/Scalar_Products_defs.hh
+++ b/src/Scalar_Products_defs.hh
@@ -214,7 +214,8 @@ public:
 
 private:
   //! The type of the scalar product sign function pointer.
-  typedef int (*SPS_type)(const Linear_Expression&, const Linear_Expression&);
+  typedef int (* const SPS_type)(const Linear_Expression&,
+                                 const Linear_Expression&);
 
   //! The scalar product sign function pointer.
   SPS_type sps_fp;




More information about the PPL-devel mailing list