mirror of
https://gitlab.com/chrony/chrony.git
synced 2025-12-03 18:25:07 -05:00
Remove volatile keyword from function declarations
This silences a lot of gcc-4 compile warnings
This commit is contained in:
@@ -116,7 +116,7 @@ LOG_Line_Function(LOG_Severity severity, LOG_Facility facility, const char *form
|
|||||||
|
|
||||||
/* ================================================== */
|
/* ================================================== */
|
||||||
|
|
||||||
volatile void
|
void
|
||||||
LOG_Fatal_Function(LOG_Facility facility, const char *format, ...)
|
LOG_Fatal_Function(LOG_Facility facility, const char *format, ...)
|
||||||
{
|
{
|
||||||
char buf[2048];
|
char buf[2048];
|
||||||
|
|||||||
@@ -77,7 +77,7 @@ extern void LOG_Finalise(void);
|
|||||||
extern void LOG_Line_Function(LOG_Severity severity, LOG_Facility facility, const char *format, ...);
|
extern void LOG_Line_Function(LOG_Severity severity, LOG_Facility facility, const char *format, ...);
|
||||||
|
|
||||||
/* Logging function for fatal errors */
|
/* Logging function for fatal errors */
|
||||||
extern volatile void LOG_Fatal_Function(LOG_Facility facility, const char *format, ...);
|
extern void LOG_Fatal_Function(LOG_Facility facility, const char *format, ...);
|
||||||
|
|
||||||
/* Position in code reporting function */
|
/* Position in code reporting function */
|
||||||
extern void LOG_Position(const char *filename, int line_number, const char *function_name);
|
extern void LOG_Position(const char *filename, int line_number, const char *function_name);
|
||||||
|
|||||||
2
main.c
2
main.c
@@ -74,7 +74,7 @@ delete_pidfile(void)
|
|||||||
|
|
||||||
/* ================================================== */
|
/* ================================================== */
|
||||||
|
|
||||||
volatile void
|
void
|
||||||
MAI_CleanupAndExit(void)
|
MAI_CleanupAndExit(void)
|
||||||
{
|
{
|
||||||
if (!initialised) exit(0);
|
if (!initialised) exit(0);
|
||||||
|
|||||||
Reference in New Issue
Block a user