summaryrefslogtreecommitdiff
path: root/src/mpfr-impl.h
diff options
context:
space:
mode:
authorvlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4>2018-08-27 01:42:20 +0000
committervlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4>2018-08-27 01:42:20 +0000
commit35cf3d965dae2d298be40e594463fb688dfcafa6 (patch)
tree7ad851e053a2f6cf6aa21f4f5e8a1723c285415d /src/mpfr-impl.h
parenta8f61cf6b6f6919427d171cbd0de83a891cc3972 (diff)
downloadmpfr-35cf3d965dae2d298be40e594463fb688dfcafa6.tar.gz
[src/mpfr-impl.h] Mention WG14/N2270 (proposed maybe_unused attribute),
which could be useful to avoid MPFR_DBGRES. git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@13026 280ebfd0-de03-0410-8827-d642c229c3f4
Diffstat (limited to 'src/mpfr-impl.h')
-rw-r--r--src/mpfr-impl.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/mpfr-impl.h b/src/mpfr-impl.h
index cacc6bdfc..9a910221d 100644
--- a/src/mpfr-impl.h
+++ b/src/mpfr-impl.h
@@ -454,6 +454,9 @@ __MPFR_DECLSPEC extern const mpfr_t __gmpfr_const_log2_RNDU;
MPFR_DBGRES(assignment): to be used when the result is tested only
in an MPFR_ASSERTD expression (in order to avoid a warning, e.g.
with GCC's -Wunused-but-set-variable, in non-debug mode).
+ Note: WG14/N2270 proposed a maybe_unused attribute, which could
+ be useful to avoid MPFR_DBGRES. See:
+ http://www.open-std.org/jtc1/sc22/wg14/www/docs/n2270.pdf
Note: Evaluating expr might yield side effects, but such side effects
must not change the results (except by yielding an assertion failure).
*/