Clang warnings.
This commit is contained in:
parent
1cde0c7976
commit
1cf4e97b7d
|
@ -48,15 +48,17 @@
|
||||||
* Implements functions defined in DL_Writer for writing low
|
* Implements functions defined in DL_Writer for writing low
|
||||||
* level DXF constructs to an ASCII format DXF file.
|
* level DXF constructs to an ASCII format DXF file.
|
||||||
*
|
*
|
||||||
* @para fname File name of the file to be created.
|
|
||||||
* @para version DXF version. Defaults to DL_VERSION_2002.
|
|
||||||
*
|
|
||||||
* @todo What if \c fname is NULL? Or \c fname can't be opened for
|
* @todo What if \c fname is NULL? Or \c fname can't be opened for
|
||||||
* another reason?
|
* another reason?
|
||||||
*/
|
*/
|
||||||
class DXFLIB_EXPORT DL_WriterA : public DL_Writer
|
class DXFLIB_EXPORT DL_WriterA : public DL_Writer
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
|
/**
|
||||||
|
* @brief DL_WriterA contructor
|
||||||
|
* @param fname File name of the file to be created.
|
||||||
|
* @param version DXF version. Defaults to DL_VERSION_2002.
|
||||||
|
*/
|
||||||
explicit DL_WriterA(const char* fname, DL_Codes::version version=DL_VERSION_2000)
|
explicit DL_WriterA(const char* fname, DL_Codes::version version=DL_VERSION_2000)
|
||||||
: DL_Writer(version), m_ofile(fname) {}
|
: DL_Writer(version), m_ofile(fname) {}
|
||||||
virtual ~DL_WriterA() {}
|
virtual ~DL_WriterA() {}
|
||||||
|
|
|
@ -62,6 +62,11 @@
|
||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
|
||||||
|
#include "../vmisc/diagnostic.h"
|
||||||
|
|
||||||
|
QT_WARNING_PUSH
|
||||||
|
QT_WARNING_DISABLE_CLANG("-Wsign-conversion")
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Copy src to string dst of size siz. At most siz-1 characters
|
* Copy src to string dst of size siz. At most siz-1 characters
|
||||||
* will be copied. Always NUL terminates (unless siz == 0).
|
* will be copied. Always NUL terminates (unless siz == 0).
|
||||||
|
@ -139,5 +144,7 @@ inline size_t strlcat(char *dst, const char *src, size_t siz)
|
||||||
return(dlen + (s - src)); /* count does not include NUL */
|
return(dlen + (s - src)); /* count does not include NUL */
|
||||||
}
|
}
|
||||||
|
|
||||||
|
QT_WARNING_POP
|
||||||
|
|
||||||
#endif /* ! __*BSD__ */
|
#endif /* ! __*BSD__ */
|
||||||
#endif // VALENTINA_STRLCPY_H
|
#endif // VALENTINA_STRLCPY_H
|
||||||
|
|
|
@ -162,7 +162,7 @@ QPoint FancyTabBar::GetCorner(const QRect& rect, const Corner corner) const
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
Q_ASSERT("that's impossible!");
|
qFatal("that's impossible!");
|
||||||
|
|
||||||
return QPoint();
|
return QPoint();
|
||||||
}
|
}
|
||||||
|
@ -193,7 +193,7 @@ QRect FancyTabBar::AdjustRect(const QRect& rect, const qint8 offsetOutside, cons
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
Q_ASSERT("that's impossible!");
|
qFatal("that's impossible!");
|
||||||
return QRect();
|
return QRect();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -216,7 +216,7 @@ QPoint FancyTabBar::AdjustPoint(const QPoint& point, const qint8 offsetInsideOut
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
Q_ASSERT("that's impossible!");
|
qFatal("that's impossible!");
|
||||||
return QPoint();
|
return QPoint();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user