Gireesh Nagabhushana wrote:
Scott,

That's strange. I used the cstyle which comes with SUNWonbld. I am sure
that I used the (x86 platform) package from this page
http://dlc.sun.com/osol/on/downloads/b124/

I am seeing cstyle reporting same error for all such array of structures.

-- Gireesh

Gireesh sent me an updated example with which I can reproduce the warning from cstyle. The code in question needs to be inside a function for cstyle to complain.

One possible workaround to eliminate the cstyle warning is simply to omit the -h option. The usage message says:

usage: cstyle [-chpvCP] [-o constructs] file ...
        ...
        -h      perform heuristic checks that are sometimes wrong
        ...

It looks like this is one of those times when the heuristic is wrong.

        Scott

--
Scott Rotondo
Principal Engineer, Solaris Security Technologies
President, Trusted Computing Group
Phone/FAX: +1 408 850 3655 (Internal x68278)
_______________________________________________
tools-discuss mailing list
tools-discuss@opensolaris.org

Reply via email to