Re: error: expected '=', ',', ';', 'asm' or '__attrib



In article <4597388e$0$18638$88260bb3@xxxxxxxxxxxxxxxxx>, Sergey
Kubushin says...
Robert Adsett <subscriptions@xxxxxxxxxxxxxxxxxxxxx> wrote:
In article <MPG.2000d13782aaec369896b1@xxxxxxxxxxxxxxxxx>, Robert Adsett
says...

[dd]

<snip>
/* Structure to declare our file access functions. */
struct file_operations qadc_fops =
{
open: qadc_open,
read: qadc_read,
write: qadc_write,
release: qadc_release
};

Well, the above isn't valid C so I'd start there.

It was some time back but now it's changed.

As of? AFAIR it isn't part of C89/90 and the more recent changes are
not generally available. It's certainly the line the compiler is
complaining about.
<snip>
This was _GCC_ extension though you probably won't find it in C/C++
standards. Nowadays this style is considered obsolete and newer GCC uses C99
notation.

So not valid C, just an obsolete GCC extension.

Robert

--
Posted via a free Usenet account from http://www.teranews.com

.