Skip to content
Snippets Groups Projects
Commit b7741a0b authored by Rye Mutt's avatar Rye Mutt :bread:
Browse files

Supress Wstringop-truncation warnings

parent bfbb20fa
No related branches found
No related tags found
No related merge requests found
......@@ -47,6 +47,10 @@
#include <set>
#include <boost/range.hpp>
#if LL_GNUC
#pragma GCC diagnostic ignored "-Wstringop-truncation"
#endif
// U32
LLSD ll_sd_from_U32(const U32 val)
{
......
......@@ -35,6 +35,10 @@
#include "llstring.h"
#include "llstringtable.h"
#if LL_GNUC
#pragma GCC diagnostic ignored "-Wstringop-truncation"
#endif
// Anonymous enumeration to provide constants in this file.
// *NOTE: These values may be used in sscanf statements below as their
// value-1, so search for '2047' if you cange NV_BUFFER_LEN or '63' if
......
......@@ -435,9 +435,7 @@ namespace tut
for (counter=0, foundUnused=false; !foundUnused; counter++ )
{
char counterStr[3];
sprintf(counterStr, "%02d", counter);
uniqueDir = dirbase + counterStr;
uniqueDir = dirbase + std::to_string(counter);
foundUnused = ! ( LLFile::isdir(uniqueDir) || LLFile::isfile(uniqueDir) );
}
ensure("test directory '" + uniqueDir + "' creation failed", !LLFile::mkdir(uniqueDir));
......
......@@ -28,6 +28,10 @@
#include "llurl.h"
#include "llerror.h"
#if LL_GNUC
#pragma GCC diagnostic ignored "-Wstringop-truncation"
#endif
LLURL::LLURL()
{
init("");
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment