Kaydet (Commit) eaabda55 authored tarafından Markus Mohrhard's avatar Markus Mohrhard

work around Werror=format-truncation in onlineupdate for now

Change-Id: I6230cc8c76313b5d180ef3fbebec4bc20b794150
Reviewed-on: https://gerrit.libreoffice.org/67879
Tested-by: Jenkins
Reviewed-by: 's avatarMarkus Mohrhard <markus.mohrhard@googlemail.com>
üst 6b13784a
......@@ -1604,8 +1604,9 @@ PatchFile::Prepare()
// extract the patch to a temporary file
mPatchIndex = sPatchIndex++;
NS_tsnprintf(spath, sizeof(spath)/sizeof(spath[0]),
int nWrittenBytes = NS_tsnprintf(spath, sizeof(spath)/sizeof(spath[0]),
NS_T("%s/updating/%d.patch"), gWorkingDirPath, mPatchIndex);
(void) nWrittenBytes;
NS_tremove(spath);
......@@ -2491,8 +2492,9 @@ ProcessReplaceRequest()
// need to have the last-update.log and backup-update.log files moved from the
// old installation directory to the new installation directory.
NS_tchar tmpLog[MAXPATHLEN];
NS_tsnprintf(tmpLog, sizeof(tmpLog)/sizeof(tmpLog[0]),
int nWrittenBytes = NS_tsnprintf(tmpLog, sizeof(tmpLog)/sizeof(tmpLog[0]),
NS_T("%s/updates/last-update.log"), tmpDir);
(void) nWrittenBytes;
if (!NS_taccess(tmpLog, F_OK))
{
NS_tchar destLog[MAXPATHLEN];
......@@ -2672,7 +2674,7 @@ CheckSignature(ArchiveReader& archiveReader)
// TODO: moggi: needs adaption for LibreOffice
// These paths need to be adapted for us.
NS_tsnprintf(updateSettingsPath,
int nWrittenBytes = NS_tsnprintf(updateSettingsPath,
sizeof(updateSettingsPath) / sizeof(updateSettingsPath[0]),
#ifdef MACOSX
NS_T("%s/Contents/Resources/update-settings.ini"),
......@@ -2680,6 +2682,7 @@ CheckSignature(ArchiveReader& archiveReader)
NS_T("%s/update-settings.ini"),
#endif
gWorkingDirPath);
(void) nWrittenBytes;
MARChannelStringTable MARStrings;
if (ReadMARChannelIDs(updateSettingsPath, &MARStrings) != OK)
{
......@@ -2743,8 +2746,9 @@ UpdateThreadFunc(void * /*param*/)
rv = DoUpdate(archiveReader);
}
NS_tchar updatingDir[MAXPATHLEN];
NS_tsnprintf(updatingDir, sizeof(updatingDir)/sizeof(updatingDir[0]),
int nWrittenBytes = NS_tsnprintf(updatingDir, sizeof(updatingDir)/sizeof(updatingDir[0]),
NS_T("%s/updating"), gWorkingDirPath);
(void) nWrittenBytes;
ensure_remove_recursive(updatingDir);
}
}
......@@ -4452,8 +4456,9 @@ int AddPreCompleteActions(ActionList *list)
int DoUpdate(ArchiveReader& archiveReader)
{
NS_tchar manifest[MAXPATHLEN];
NS_tsnprintf(manifest, sizeof(manifest)/sizeof(manifest[0]),
int nWrittenBytes = NS_tsnprintf(manifest, sizeof(manifest)/sizeof(manifest[0]),
NS_T("%s/updating/update.manifest"), gWorkingDirPath);
(void) nWrittenBytes;
ensure_parent_dir(manifest);
// extract the manifest
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment