Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
R
riscv-gcc-1
Overview
Overview
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
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lvzhengyang
riscv-gcc-1
Commits
87416640
Commit
87416640
authored
Sep 26, 1995
by
Richard Kenner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(check_format_info): Don't warn about format type mismatch if the
argument is an ERROR_MARK. From-SVN: r10401
parent
f05a769f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
5 deletions
+9
-5
gcc/c-common.c
+9
-5
No files found.
gcc/c-common.c
View file @
87416640
...
...
@@ -1224,16 +1224,20 @@ check_format_info (info, params)
cur_type
=
TREE_TYPE
(
cur_type
);
continue
;
}
sprintf
(
message
,
"format argument is not a %s (arg %d)"
,
((
fci
->
pointer_count
==
1
)
?
"pointer"
:
"pointer to a pointer"
),
arg_num
);
warning
(
message
);
if
(
TREE_CODE
(
cur_type
)
!=
ERROR_MARK
)
{
sprintf
(
message
,
"format argument is not a %s (arg %d)"
,
((
fci
->
pointer_count
==
1
)
?
"pointer"
:
"pointer to a pointer"
),
arg_num
);
warning
(
message
);
}
break
;
}
/* Check the type of the "real" argument, if there's a type we want. */
if
(
i
==
fci
->
pointer_count
&&
wanted_type
!=
0
&&
TREE_CODE
(
cur_type
)
!=
ERROR_MARK
&&
wanted_type
!=
TYPE_MAIN_VARIANT
(
cur_type
)
/* If we want `void *', allow any pointer type.
(Anything else would already have got a warning.) */
...
...
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