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
6d1c15cc
Commit
6d1c15cc
authored
Jan 02, 2001
by
Richard Kenner
Committed by
Richard Kenner
Jan 02, 2001
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* c-decl.c (start_function): Don't warn on third parameter to main.
From-SVN: r38625
parent
976b230d
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
5 deletions
+6
-5
gcc/ChangeLog
+4
-0
gcc/c-decl.c
+2
-5
No files found.
gcc/ChangeLog
View file @
6d1c15cc
Tue Jan 2 10:47:38 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.
* c-decl.c (start_function): Don't warn on third parameter to main.
2001-01-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2001-01-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
* tsystem.h: Define HAVE_DECL_GETOPT.
* tsystem.h: Define HAVE_DECL_GETOPT.
...
...
gcc/c-decl.c
View file @
6d1c15cc
...
@@ -6049,14 +6049,11 @@ start_function (declspecs, declarator, prefix_attributes, attributes)
...
@@ -6049,14 +6049,11 @@ start_function (declspecs, declarator, prefix_attributes, attributes)
}
}
/* It is intentional that this message does not mention the third
/* It is intentional that this message does not mention the third
argument
, which is warned for only pedantically, because it's
argument
because it's only mentioned in an appendix of the
blessed by mention in an appendix of the
standard. */
standard. */
if
(
argct
>
0
&&
(
argct
<
2
||
argct
>
3
))
if
(
argct
>
0
&&
(
argct
<
2
||
argct
>
3
))
pedwarn_with_decl
(
decl1
,
"`%s' takes only zero or two arguments"
);
pedwarn_with_decl
(
decl1
,
"`%s' takes only zero or two arguments"
);
if
(
argct
==
3
&&
pedantic
)
pedwarn_with_decl
(
decl1
,
"third argument of `%s' is deprecated"
);
if
(
!
TREE_PUBLIC
(
decl1
))
if
(
!
TREE_PUBLIC
(
decl1
))
pedwarn_with_decl
(
decl1
,
"`%s' is normally a non-static function"
);
pedwarn_with_decl
(
decl1
,
"`%s' is normally a non-static function"
);
}
}
...
...
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