Article View: gnu.gcc.help
Article #49670Huh? "useless keyword or type name in empty declaration"
From: Harlan Stenn (PFCS Corporation)
Date: Thu, 13 Jan 1994 03:16
Date: Thu, 13 Jan 1994 03:16
22 lines
1242 bytes
1242 bytes
gcc-2.5.7 says this on several different architectures regarding the
following fragment:
gcc -O -Wall txt_init.c
txt_init.c:225: warning: useless keyword or type name in empty declaration
txt_init.c:
...
static struct sym_tbl_elt /* Contains token name and associated integer. */
{
char *token_name; /* Name of the token, or keyword. */
int token_val; /* Associated integer value of the token. */
};
...
the }; line is pointed to by line 225. What is the useless keyword or
type in the above warning?
Please replay by email; I don't read this newsgroup.
Harlan
Technical Details
Message-ID:
<HARLAN.94Jan12211644@homer.cms-stl.com>Path:
arc1-ca.pugleaf.net!gmd.de!xlink.net!howland.reston.ans.net!wupost!haduk!haduk!harlanShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 11318c,203716c1849ade8d,start X-Google-Attributes: gid11318c,public X-Google-ArrivalTime: 1994-01-12 22:57:32 PST Newsgroups: gnu.gcc.help Path: arc1-ca.pugleaf.net!gmd.de!xlink.net!howland.reston.ans.net!wupost!haduk!haduk!harlan From: harlan@cms-stl.com (Harlan Stenn (PFCS Corporation)) Subject: Huh? "useless keyword or type name in empty declaration" Sender: usenet@cms-stl.com (USENET News System) Message-ID: <HARLAN.94Jan12211644@homer.cms-stl.com> Date: Thu, 13 Jan 1994 03:16:44 GMT Nntp-Posting-Host: homer.cms-stl.com Organization: Computerized Medical Systems, Inc. Lines: 23