From 2067301d1ca891a54ab3bd3a2829669c90342260 Mon Sep 17 00:00:00 2001 From: Tomasz Sowa Date: Tue, 7 Feb 2017 14:19:59 +0000 Subject: [PATCH] changed: get rid of some warnings generated by gcc and clang git-svn-id: svn://ttmath.org/publicrep/ttmath/trunk@1043 e52654a7-88a9-db11-a3e9-0013d4bc506e --- ttmath/ttmath.h | 5 ++++- ttmath/ttmathbig.h | 4 ++-- ttmath/ttmathint.h | 4 ++-- ttmath/ttmathtypes.h | 6 +++--- ttmath/ttmathuint.h | 7 ++++--- 5 files changed, 15 insertions(+), 11 deletions(-) diff --git a/ttmath/ttmath.h b/ttmath/ttmath.h index ee40e6e..a044912 100644 --- a/ttmath/ttmath.h +++ b/ttmath/ttmath.h @@ -5,7 +5,7 @@ */ /* - * Copyright (c) 2006-2012, Tomasz Sowa + * Copyright (c) 2006-2017, Tomasz Sowa * All rights reserved. * * Redistribution and use in source and binary forms, with or without @@ -346,6 +346,9 @@ namespace ttmath /* this namespace consists of auxiliary functions (something like 'private' in a class) + + this is excluded from doxygen documentation + (option EXCLUDE_SYMBOLS in doxygen.cfg) */ namespace auxiliaryfunctions { diff --git a/ttmath/ttmathbig.h b/ttmath/ttmathbig.h index 45793b4..74e8402 100644 --- a/ttmath/ttmathbig.h +++ b/ttmath/ttmathbig.h @@ -5,7 +5,7 @@ */ /* - * Copyright (c) 2006-2012, Tomasz Sowa + * Copyright (c) 2006-2017, Tomasz Sowa * All rights reserved. * * Redistribution and use in source and binary forms, with or without @@ -2148,7 +2148,7 @@ public: 0 - ok 1 - overflow 2 - incorrect argument (x<=0) - 3 - incorrect base (a<=0 lub a=1) + 3 - incorrect base (a<=0 or a=1) */ uint Log(const Big & x, const Big & base) { diff --git a/ttmath/ttmathint.h b/ttmath/ttmathint.h index 04d9014..33c614d 100644 --- a/ttmath/ttmathint.h +++ b/ttmath/ttmathint.h @@ -5,7 +5,7 @@ */ /* - * Copyright (c) 2006-2013, Tomasz Sowa + * Copyright (c) 2006-2017, Tomasz Sowa * All rights reserved. * * Redistribution and use in source and binary forms, with or without @@ -812,7 +812,7 @@ public: /*! a copy constructor */ - Int(const Int & u) + Int(const Int & u) : UInt() { FromInt(u); } diff --git a/ttmath/ttmathtypes.h b/ttmath/ttmathtypes.h index 3d9ddbe..1fda735 100644 --- a/ttmath/ttmathtypes.h +++ b/ttmath/ttmathtypes.h @@ -5,7 +5,7 @@ */ /* - * Copyright (c) 2006-2012, Tomasz Sowa + * Copyright (c) 2006-2017, Tomasz Sowa * All rights reserved. * * Redistribution and use in source and binary forms, with or without @@ -72,9 +72,9 @@ */ #define TTMATH_MAJOR_VER 0 #define TTMATH_MINOR_VER 9 -#define TTMATH_REVISION_VER 3 +#define TTMATH_REVISION_VER 4 -#define TTMATH_PRERELEASE_VER 0 +#define TTMATH_PRERELEASE_VER 1 diff --git a/ttmath/ttmathuint.h b/ttmath/ttmathuint.h index 2b303a3..2110481 100644 --- a/ttmath/ttmathuint.h +++ b/ttmath/ttmathuint.h @@ -5,7 +5,7 @@ */ /* - * Copyright (c) 2006-2013, Tomasz Sowa + * Copyright (c) 2006-2017, Tomasz Sowa * All rights reserved. * * Redistribution and use in source and binary forms, with or without @@ -1313,7 +1313,7 @@ private: //we have the stop point in Mul3Big2() method #endif -#ifdef __GNUC__ +#if defined(__GNUC__) && !defined(__clang__) #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wunused-but-set-variable" #endif @@ -1452,7 +1452,7 @@ private: } -#ifdef __GNUC__ +#if defined(__GNUC__) && !defined(__clang__) #pragma GCC diagnostic pop #endif @@ -2483,6 +2483,7 @@ public: + /*! this method sets n first bits to value zero