[GiNaC-devel] [SCM] GiNaC -- a C++ library for symbolic computations branch master updated. release_1-4-0-779-g32702f84

git service git at ginac.de
Tue Nov 26 00:33:47 CET 2024


This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "GiNaC -- a C++ library for symbolic computations".

The branch, master has been updated
       via  32702f847fb49da649f4362b0de3084890ac8129 (commit)
      from  0aa0a0c6fe7d24fdc41af01581e8728054393740 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit 32702f847fb49da649f4362b0de3084890ac8129
Author: Richard Kreckel <kreckel at ginac.de>
Date:   Tue Nov 26 00:21:28 2024 +0100

    Avoid "expression with side effects..." warning using ex_to<T>().
    
    Clang++ warns that instantiations of this inline template function
    ex_to<T>(const ex &) are "expression with side effects [that] will be
    evaluated despite being used as an operand to 'typeid'".
    
    Let's declare this ex_to<T>() as a pure function (i.e. having no
    side effects) for compilers which support __attribute__((__pure__)).
    
    GCC seems to support this attribute since more than ten years.

-----------------------------------------------------------------------

Summary of changes:
 ginac/compiler.h | 2 ++
 ginac/ex.h       | 3 ++-
 2 files changed, 4 insertions(+), 1 deletion(-)


hooks/post-receive
-- 
GiNaC -- a C++ library for symbolic computations



More information about the GiNaC-devel mailing list