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
This commit is contained in:
Tomasz Sowa 2017-02-07 14:19:59 +00:00
parent e2cdeac423
commit 2067301d1c
5 changed files with 15 additions and 11 deletions

View File

@ -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
{

View File

@ -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<exp,man> & x, const Big<exp,man> & base)
{

View File

@ -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<value_size> & u)
Int(const Int<value_size> & u) : UInt<value_size>()
{
FromInt(u);
}

View File

@ -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

View File

@ -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