Running astyle; test/cfg/: Since #6958 is fixed, activated test cases for fma()-functions.

This commit is contained in:
Martin Ettl 2015-08-30 11:59:33 +02:00
parent ab4adf2836
commit fb643ba2d4
3 changed files with 12 additions and 9 deletions

View File

@ -7,8 +7,7 @@ namespace Ui {
class LibraryAddFunctionDialog; class LibraryAddFunctionDialog;
} }
class LibraryAddFunctionDialog : public QDialog class LibraryAddFunctionDialog : public QDialog {
{
Q_OBJECT Q_OBJECT
public: public:

View File

@ -1163,22 +1163,24 @@ void uninitvar_floor(void)
(void)floorl(ld); (void)floorl(ld);
} }
#if 0 // #6958
void uninitvar_fma(void) void uninitvar_fma(void)
{ {
// cppcheck-suppress unassignedVariable
float f1,f2,f3; float f1,f2,f3;
// cppcheck-suppress uninitvar // cppcheck-suppress uninitvar
(void)fmaf(f1,f2,f3); (void)fmaf(f1,f2,f3);
// cppcheck-suppress unassignedVariable
double d1,d2,d3; double d1,d2,d3;
// cppcheck-suppress uninitvar // cppcheck-suppress uninitvar
(void)fma(d1,d2,d3); (void)fma(d1,d2,d3);
// cppcheck-suppress unassignedVariable
long double ld1,ld2,ld3; long double ld1,ld2,ld3;
// cppcheck-suppress uninitvar // cppcheck-suppress uninitvar
(void)fmal(ld1,ld2,ld3); (void)fmal(ld1,ld2,ld3);
} }
#endif
void ignoreretrn(void) void ignoreretrn(void)
{ {
char szNumbers[] = "2001 60c0c0 -1101110100110100100000 0x6fffff"; char szNumbers[] = "2001 60c0c0 -1101110100110100100000 0x6fffff";

View File

@ -686,19 +686,21 @@ void uninitvar_floor(void)
(void)std::floor(ld); (void)std::floor(ld);
} }
#if 0 // #6958
void uninitvar_fma(void) void uninitvar_fma(void)
{ {
// cppcheck-suppress unassignedVariable
float f1,f2,f3; float f1,f2,f3;
// cppcheck-suppress uninitvar // cppcheck-suppress uninitvar
(void)std::fma(f1,f2,f3); (void)std::fma(f1,f2,f3);
// cppcheck-suppress unassignedVariable
double d1,d2,d3; double d1,d2,d3;
// cppcheck-suppress uninitvar // cppcheck-suppress uninitvar
(void)std::fma(d1,d2,d3); (void)std::fma(d1,d2,d3);
// cppcheck-suppress unassignedVariable
long double ld1,ld2,ld3; long double ld1,ld2,ld3;
// cppcheck-suppress uninitvar // cppcheck-suppress uninitvar
(void)std::fma(ld1,ld2,ld3); (void)std::fma(ld1,ld2,ld3);
} }
#endif