projects
/
unix-history
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
tags
|
clone url
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Oh GACK! src-clean doesn't quite work that easily since cleandist rebuilds the
[unix-history]
/
gnu
/
usr.bin
/
cc
/
common
/
toplev.c
diff --git
a/gnu/usr.bin/cc/common/toplev.c
b/gnu/usr.bin/cc/common/toplev.c
index
a7db37c
..
1e33806
100644
(file)
--- a/
gnu/usr.bin/cc/common/toplev.c
+++ b/
gnu/usr.bin/cc/common/toplev.c
@@
-1939,7
+1939,11
@@
compile_file (name)
&& DECL_EXTERNAL (decl)
&& ! TREE_PUBLIC (decl))
{
&& DECL_EXTERNAL (decl)
&& ! TREE_PUBLIC (decl))
{
- pedwarn_with_decl (decl,
+ /* This should be a pedwarn, except that there is
+ no easy way to prevent it from happening when the
+ name is used only inside a sizeof.
+ This at least avoids being incorrect. */
+ warning_with_decl (decl,
"`%s' declared `static' but never defined");
/* This symbol is effectively an "extern" declaration now. */
TREE_PUBLIC (decl) = 1;
"`%s' declared `static' but never defined");
/* This symbol is effectively an "extern" declaration now. */
TREE_PUBLIC (decl) = 1;