[ofw] RE: [ib-diag] sminfo: add support for WinOF
Sean Hefty
sean.hefty at intel.com
Sat Feb 14 17:59:47 PST 2009
>static const struct ibdiag_opt *opts_map[256];
>
>and later:
>
> memset(opts_map, 0, sizeof(opts_map));
With the above:
warnings in directory c:\mshefty\scm\winof\branches\winverbs\tools\infiniband-di
ags\src\sminfo
c:\mshefty\scm\winof\branches\winverbs\tools\infiniband-diags\src\ibdiag_common.
c(276) : warning C4090: 'function' : different 'const' qualifiers
(line 276 is the memset)
With const removed, Windows builds fine, but then Linux build gives:
src/ibdiag_common.c: In function `ibdiag_process_opts':
src/ibdiag_common.c:282: warning: passing arg 3 of `make_long_opts' from incompa
tible pointer type
So, I gave up and added a cast at the memset.
- Sean
More information about the ofw
mailing list