Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
479f5a1b
Commit
479f5a1b
authored
Dec 04, 2008
by
Vincent Povirk
Committed by
Alexandre Julliard
Dec 05, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
widl: Fix string format warning.
yyerror takes a single string argument, not a format string.
parent
8f6736cf
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
13 deletions
+7
-13
utils.c
tools/widl/utils.c
+6
-12
utils.h
tools/widl/utils.h
+1
-1
No files found.
tools/widl/utils.c
View file @
479f5a1b
...
...
@@ -66,18 +66,6 @@ static void generic_msg(const loc_info_t *loc_info, const char *s, const char *t
}
/* yyerror: yacc assumes this is not newline terminated. */
void
parser_error
(
const
char
*
s
,
...)
{
loc_info_t
cur_location
=
CURRENT_LOCATION
;
va_list
ap
;
va_start
(
ap
,
s
);
generic_msg
(
&
cur_location
,
s
,
"Error"
,
ap
);
fprintf
(
stderr
,
"
\n
"
);
va_end
(
ap
);
exit
(
1
);
}
void
error_loc
(
const
char
*
s
,
...)
{
loc_info_t
cur_loc
=
CURRENT_LOCATION
;
...
...
@@ -88,6 +76,12 @@ void error_loc(const char *s, ...)
exit
(
1
);
}
/* yyerror: yacc assumes this is not newline terminated. */
void
parser_error
(
const
char
*
s
)
{
error_loc
(
"%s
\n
"
,
s
);
}
void
error_loc_info
(
const
loc_info_t
*
loc_info
,
const
char
*
s
,
...)
{
va_list
ap
;
...
...
tools/widl/utils.h
View file @
479f5a1b
...
...
@@ -33,7 +33,7 @@ char *xstrdup(const char *str);
#define __attribute__(X)
#endif
void
parser_error
(
const
char
*
s
,
...)
__attribute__
((
format
(
printf
,
1
,
2
))
)
__attribute__
((
noreturn
));
void
parser_error
(
const
char
*
s
)
__attribute__
((
noreturn
));
int
parser_warning
(
const
char
*
s
,
...)
__attribute__
((
format
(
printf
,
1
,
2
)));
void
error_loc
(
const
char
*
s
,
...)
__attribute__
((
format
(
printf
,
1
,
2
)))
__attribute__
((
noreturn
));
void
error
(
const
char
*
s
,
...)
__attribute__
((
format
(
printf
,
1
,
2
)))
__attribute__
((
noreturn
));
...
...
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