Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
D
doxverilog
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Commits
Open sidebar
Elphel
doxverilog
Commits
31505eb3
Commit
31505eb3
authored
Jan 18, 2014
by
Dimitri van Heesch
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed potential crash caused by overloading the variadic warn function
parent
ac813134
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
4 deletions
+4
-4
message.cpp
src/message.cpp
+1
-1
message.h
src/message.h
+1
-1
template.cpp
src/template.cpp
+2
-2
No files found.
src/message.cpp
View file @
31505eb3
...
...
@@ -172,7 +172,7 @@ void warn(const char *file,int line,const char *fmt, ...)
va_end
(
args
);
}
void
warn
(
const
char
*
file
,
int
line
,
const
char
*
fmt
,
va_list
args
)
void
va_
warn
(
const
char
*
file
,
int
line
,
const
char
*
fmt
,
va_list
args
)
{
do_warn
(
"WARNINGS"
,
file
,
line
,
warning_str
,
fmt
,
args
);
}
...
...
src/message.h
View file @
31505eb3
...
...
@@ -23,7 +23,7 @@
extern
void
msg
(
const
char
*
fmt
,
...);
extern
void
warn
(
const
char
*
file
,
int
line
,
const
char
*
fmt
,
...);
extern
void
warn
(
const
char
*
file
,
int
line
,
const
char
*
fmt
,
va_list
args
);
extern
void
va_
warn
(
const
char
*
file
,
int
line
,
const
char
*
fmt
,
va_list
args
);
extern
void
warn_simple
(
const
char
*
file
,
int
line
,
const
char
*
text
);
extern
void
warn_undoc
(
const
char
*
file
,
int
line
,
const
char
*
fmt
,
...);
extern
void
warn_doc_error
(
const
char
*
file
,
int
line
,
const
char
*
fmt
,
...);
...
...
src/template.cpp
View file @
31505eb3
...
...
@@ -1713,7 +1713,7 @@ void TemplateContextImpl::warn(const char *fileName,int line,const char *fmt,...
{
va_list
args
;
va_start
(
args
,
fmt
);
::
warn
(
fileName
,
line
,
fmt
,
args
);
va_
warn
(
fileName
,
line
,
fmt
,
args
);
va_end
(
args
);
m_engine
->
printIncludeContext
(
fileName
,
line
);
}
...
...
@@ -3342,7 +3342,7 @@ void TemplateParser::warn(const char *fileName,int line,const char *fmt,...) con
{
va_list
args
;
va_start
(
args
,
fmt
);
::
warn
(
fileName
,
line
,
fmt
,
args
);
va_
warn
(
fileName
,
line
,
fmt
,
args
);
va_end
(
args
);
m_engine
->
printIncludeContext
(
fileName
,
line
);
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment