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
b10fc6f5
Commit
b10fc6f5
authored
Feb 04, 2007
by
Gabriel Dos Reis
Committed by
Gabriel Dos Reis
Feb 04, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* decl.c (grokdeclarator): Use OPT_Wreturn_type instead of 0.
From-SVN: r121568
parent
22f23985
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
2 deletions
+7
-2
gcc/cp/ChangeLog
+4
-0
gcc/cp/decl.c
+3
-2
No files found.
gcc/cp/ChangeLog
View file @
b10fc6f5
2007
-
02
-
03
Gabriel
Dos
Reis
<
gdr
@
integrable
-solutions.net
>
*
decl.c
(
grokdeclarator
):
Use
OPT_Wreturn_type
instead
of
0
.
2007
-
02
-
04
Kazu
Hirata
<
kazu
@
codesourcery.com
>
*
class.c
,
cp
-tree.h
,
decl.c
,
decl2.c
,
g
++
spec.c
,
init.c
,
...
...
gcc/cp/decl.c
View file @
b10fc6f5
...
...
@@ -7254,8 +7254,9 @@ grokdeclarator (const cp_declarator *declarator,
/* Allow it, sigh. */
;
else
if
(
pedantic
||
!
is_main
)
pedwarn
(
"ISO C++ forbids declaration of %qs with no type"
,
name
);
else
if
(
warn_return_type
)
warning
(
0
,
"ISO C++ forbids declaration of %qs with no type"
,
name
);
else
warning
(
OPT_Wreturn_type
,
"ISO C++ forbids declaration of %qs with no type"
,
name
);
type
=
integer_type_node
;
}
...
...
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