mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-03-30 10:36:42 +00:00
Merge remote-tracking branch 'psi29a/clang_lintian'
This commit is contained in:
commit
5f8b8b127c
2 changed files with 14 additions and 4 deletions
|
@ -11,7 +11,6 @@
|
||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
#include <limits.h>
|
#include <limits.h>
|
||||||
|
|
||||||
|
|
||||||
#include <pthread.h>
|
#include <pthread.h>
|
||||||
#include <stdbool.h>
|
#include <stdbool.h>
|
||||||
#include <sys/ptrace.h>
|
#include <sys/ptrace.h>
|
||||||
|
@ -29,6 +28,7 @@
|
||||||
#include <signal.h>
|
#include <signal.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#define UNUSED(x) (void)(x)
|
||||||
|
|
||||||
static const char crash_switch[] = "--cc-handle-crash";
|
static const char crash_switch[] = "--cc-handle-crash";
|
||||||
|
|
||||||
|
@ -160,7 +160,11 @@ static void gdb_info(pid_t pid)
|
||||||
printf("Executing: %s\n", cmd_buf);
|
printf("Executing: %s\n", cmd_buf);
|
||||||
fflush(stdout);
|
fflush(stdout);
|
||||||
|
|
||||||
system(cmd_buf);
|
{ /* another special exception for "ignoring return value..." */
|
||||||
|
int unused;
|
||||||
|
unused = system(cmd_buf);
|
||||||
|
UNUSED(unused);
|
||||||
|
}
|
||||||
/* Clean up */
|
/* Clean up */
|
||||||
remove(respfile);
|
remove(respfile);
|
||||||
}
|
}
|
||||||
|
@ -406,7 +410,13 @@ int cc_install_handlers(int argc, char **argv, int num_signals, int *signals, co
|
||||||
snprintf(argv0, sizeof(argv0), "%s", argv[0]);
|
snprintf(argv0, sizeof(argv0), "%s", argv[0]);
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
getcwd(argv0, sizeof(argv0));
|
{
|
||||||
|
/* we don't want to disable "ignoring return value" warnings, so we make
|
||||||
|
* a special exception here. */
|
||||||
|
char * unused;
|
||||||
|
unused = getcwd(argv0, sizeof(argv0));
|
||||||
|
UNUSED(unused);
|
||||||
|
}
|
||||||
retval = strlen(argv0);
|
retval = strlen(argv0);
|
||||||
snprintf(argv0+retval, sizeof(argv0)-retval, "/%s", argv[0]);
|
snprintf(argv0+retval, sizeof(argv0)-retval, "/%s", argv[0]);
|
||||||
}
|
}
|
||||||
|
|
|
@ -185,7 +185,7 @@ void Wizard::InstallationPage::installationFinished()
|
||||||
msgBox.setWindowTitle(tr("Installation finished"));
|
msgBox.setWindowTitle(tr("Installation finished"));
|
||||||
msgBox.setIcon(QMessageBox::Information);
|
msgBox.setIcon(QMessageBox::Information);
|
||||||
msgBox.setStandardButtons(QMessageBox::Ok);
|
msgBox.setStandardButtons(QMessageBox::Ok);
|
||||||
msgBox.setText(tr("Installation completed sucessfully!"));
|
msgBox.setText(tr("Installation completed successfully!"));
|
||||||
|
|
||||||
msgBox.exec();
|
msgBox.exec();
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue