Ignore:
Timestamp:
Feb 22, 2012, 7:37:52 PM (11 years ago)
Author:
Oleksandr Motsak <motsak@…>
Branches:
(u'spielwiese', '91fdef05f09f54b8d58d92a472e9c4a43aa4656f')
Children:
1ffd5aaa7f73b96e691b67a5fb6a364a7dfb77d1
Parents:
9840b5050e1851feb2d68a4b74113aa1b59fa12d
git-author:
Oleksandr Motsak <motsak@mathematik.uni-kl.de>2012-02-22 19:37:52+01:00
git-committer:
Oleksandr Motsak <motsak@mathematik.uni-kl.de>2012-02-23 20:35:08+01:00
Message:
function-to-function/object warnings

fix the warnings using a union hack (misc/auxiliary.h.in)

NOTE: this is a C/C++-standard issue, see http://www.trilithium.com/johan/2004/12/problem-with-dlsym/
File:
1 edited

Legend:

Unmodified
Added
Removed
  • libpolys/polys/templates/p_Procs_Set.h

    r9840b5 r825966  
    126126#endif
    127127
     128// (which##_Proc_Ptr)F ->-> cast_vptr_to_A<which##_Proc_Ptr>(F)?
    128129#define CheckProc(which)                                    \
    129130do                                                          \
     
    134135    WarnS("Singular will work properly, but much slower");  \
    135136    WarnS("If you chose a coef ring, it may not work at all");\
    136     p_Procs->which = (which##_Proc_Ptr)                     \
    137       which##__FieldGeneral_LengthGeneral_OrdGeneral;       \
     137    p_Procs->which =                 (which##_Proc_Ptr)(    \
     138      which##__FieldGeneral_LengthGeneral_OrdGeneral);       \
    138139  }                                                         \
    139140}                                                           \
Note: See TracChangeset for help on using the changeset viewer.