mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2025-06-04 00:50:42 +02:00
siable warning to truncate and compile fix
This commit is contained in:
parent
85d350b48b
commit
25eecf7039
@ -138,6 +138,7 @@ sls_enable_cxx_warning("-Wduplicated-cond")
|
||||
sls_disable_cxx_warning("-Wclass-memaccess")
|
||||
sls_disable_c_warning("-Wstringop-truncation")
|
||||
sls_disable_c_warning("-Wformat-nonliteral")
|
||||
sls_disable_c_warning("-Wformat-truncation")
|
||||
|
||||
|
||||
if(SLS_USE_SANITIZER)
|
||||
|
@ -576,6 +576,9 @@ int waitForFPGAtoTouchFlash(char *mess) {
|
||||
}
|
||||
|
||||
int moveBinaryFile(char *mess, char *serverName) {
|
||||
char cmd[MAX_STR_LENGTH] = {0};
|
||||
char retvals[MAX_STR_LENGTH] = {0};
|
||||
|
||||
char *format = "mv %s %s";
|
||||
if (snprintf(cmd, MAX_STR_LENGTH, format, TEMP_PROG_FILE_NAME,
|
||||
serverName) >= MAX_STR_LENGTH) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user