Skip to content

Commit

Permalink
Address some compiler warnings.
Browse files Browse the repository at this point in the history
  • Loading branch information
George Wang committed Jul 23, 2020
1 parent 78fc12a commit 293d2f9
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
1 change: 1 addition & 0 deletions sapi/litespeed/lsapi_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
#include "zend.h"
#include "ext/standard/basic_functions.h"
#include "ext/standard/info.h"
#include "ext/standard/head.h"
#include "lsapilib.h"
#include "lsapi_main_arginfo.h"

Expand Down
12 changes: 7 additions & 5 deletions sapi/litespeed/lscriu.c
Original file line number Diff line number Diff line change
Expand Up @@ -403,8 +403,8 @@ static void LSCRIU_Restored_Error(int iFatal, char *format, ...) {
}
}
#else // no debugging
static void inline LSCRIU_Debugging(void) {}
static void inline LSCRIU_Restored_Error(int iFatal, char *format, ...) {}
static inline void LSCRIU_Debugging(void) {}
static inline void LSCRIU_Restored_Error(int iFatal, char *format, ...) {}
#endif


Expand Down Expand Up @@ -626,12 +626,14 @@ static int LSCRIU_Init_Env_Parameters(void)
gc_type == CRIU_GCOUNTER_SIG ? "signals" : "pipe");
lsapi_criu_signal(SIGUSR2, lsapi_siguser2);
}
else
else {
lscriu_dbg("LSCRIU (%d): Use shared memory\n", getpid());
LSCRIU_Set_Global_Counter_Type(gc_type);
}
LSCRIU_Set_Global_Counter_Type(gc_type);
}
else
else {
lscriu_dbg("LSCRIU (%d): NOT Listening\n", getpid());
}

char *criu_mode = NULL;
criu_mode = getenv("LSAPI_CRIU");
Expand Down

0 comments on commit 293d2f9

Please sign in to comment.