Remove volatile keyword from function declarations
This silences a lot of gcc-4 compile warnings
This commit is contained in:
parent
3e7781fdaf
commit
1e7e7d3231
4 changed files with 4 additions and 4 deletions
|
@ -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, ...)
|
||||
{
|
||||
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, ...);
|
||||
|
||||
/* 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 */
|
||||
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)
|
||||
{
|
||||
if (!initialised) exit(0);
|
||||
|
|
2
main.h
2
main.h
|
@ -32,7 +32,7 @@
|
|||
#define GOT_MAIN_H
|
||||
|
||||
/* Function to clean up at end of run */
|
||||
extern volatile void MAI_CleanupAndExit(void);
|
||||
extern void MAI_CleanupAndExit(void);
|
||||
|
||||
#endif /* GOT_MAIN_H */
|
||||
|
||||
|
|
Loading…
Reference in a new issue