hopefully the final issue...fix missing prototype
This commit is contained in:
@@ -266,6 +266,9 @@ static int32_t log_cycles = 0;
|
|||||||
static int seen = 0;
|
static int seen = 0;
|
||||||
|
|
||||||
static int suppr_seen = 1;
|
static int suppr_seen = 1;
|
||||||
|
|
||||||
|
// Functions only used in this translation unit
|
||||||
|
void pclog_ensure_stdlog_open();
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/*
|
/*
|
||||||
@@ -273,6 +276,7 @@ static int suppr_seen = 1;
|
|||||||
*/
|
*/
|
||||||
void pclog_ensure_stdlog_open()
|
void pclog_ensure_stdlog_open()
|
||||||
{
|
{
|
||||||
|
#ifndef RELEASE_BUILD
|
||||||
if (stdlog == NULL) {
|
if (stdlog == NULL) {
|
||||||
if (log_path[0] != '\0') {
|
if (log_path[0] != '\0') {
|
||||||
stdlog = plat_fopen(log_path, "w");
|
stdlog = plat_fopen(log_path, "w");
|
||||||
@@ -281,6 +285,7 @@ void pclog_ensure_stdlog_open()
|
|||||||
} else
|
} else
|
||||||
stdlog = stdout;
|
stdlog = stdout;
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|||||||
Reference in New Issue
Block a user