Skip to content

Commit

Permalink
proper compile on gcc 4.8
Browse files Browse the repository at this point in the history
(cherry picked from commit 421e3e3)
  • Loading branch information
razvancrainea committed Feb 11, 2016
1 parent 0a3c97b commit ad44a05
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 8 deletions.
5 changes: 5 additions & 0 deletions dprint.h
Expand Up @@ -445,5 +445,10 @@ static inline char* dp_time(void)
#endif /*SUN_PRO_C*/
#endif

#define report_programming_bug(format, args...) \
LM_CRIT("\n>>> " format"\nIt seems you have hit a programming bug.\n" \
"Please help us make OpenSIPS better by reporting it at " \
"https://github.com/OpenSIPS/opensips/issues\n\n", ##args);
#define LM_BUG report_programming_bug

#endif /* ifndef dprint_h */
6 changes: 0 additions & 6 deletions error.h
Expand Up @@ -58,12 +58,6 @@

#define E_BAD_SERVER -500 /*!< error in server */

#define report_programming_bug(format, args...) \
LM_CRIT("\n>>> " format"\nIt seems you have hit a programming bug.\n" \
"Please help us make OpenSIPS better by reporting it at " \
"https://github.com/OpenSIPS/opensips/issues\n\n", ##args);
#define LM_BUG report_programming_bug

/*
* portable macro which prevents "unused variable" compiler warnings
* when defining certain flags, e.g. NO_LOG, NO_DEBUG
Expand Down
4 changes: 2 additions & 2 deletions pt.h
Expand Up @@ -31,7 +31,7 @@
#include <sys/types.h>
#include <unistd.h>

#include "statistics.h"
struct stat_var_;

#define MAX_PT_DESC 128

Expand All @@ -44,7 +44,7 @@ struct process_table {
int default_debug; /* used when resetting the log level */
int debug; /* logging level of this process */

stat_var *load;
struct stat_var_ *load;
};

typedef void(*forked_proc_func)(int i);
Expand Down

0 comments on commit ad44a05

Please sign in to comment.