From: John Stone (johns_at_ks.uiuc.edu)
Date: Sat Apr 19 2008 - 14:46:06 CDT

Vlad,
  The warning from libbiokit could be fixed, I'll have to send any patches
on that back to the maintainers of that codebase.

The warnings that come from things like compiling STAMP may not
worth worrying about, as any changes we make to the VMD
tree won't benefit the original STAMP code directly. It would be better
if we worked directly to give such fixes to the authors of STAMP and then
re-incorporate a fixed version of the STAMP source code into the VMD plugin
tree rather than just patching our own copy.

The warnings from endianswap should be ignored, this is a natural consequence
of having to incorporate all of the endian routines in each of the plugins
that uses them.

The vtfplugin warnings could be fixed by changing the code if one likes.

The msmsplugin warning is not relevant as you will see when you read the code.

Cheers,
  John Stone
  vmd_at_ks.uiuc.edu

On Sat, Apr 19, 2008 at 04:09:32PM +0200, Cojocaru,Vlad wrote:
> Dear VMD users,
>
> I am building MD from source (CVS) on a LINUXAMD64 (SuSE linux, gcc 4.2). During the plugin build I get a lot of warning messages. Some examples are below.
> The build seems ok inspite of these warnings. My question is: Shall I worry about these warnings .. or I can go on with the build ?
>
> Thanks
> Best
> vlad
>
> src/alphabetBuilder.cpp:14: warning: deprecated conversion from string constant to ‘char*’
>
> src/ccprobcalc.c:52: warning: unused variable ‘uval’
> src/ccprobcalc.c:51: warning: unused variable ‘ll’
> src/ccprobcalc.c:51: warning: unused variable ‘end’
> src/ccprobcalc.c:51: warning: unused variable ‘start’
> src/ccprobcalc.c:50: warning: unused variable ‘k’
>
> src/gjnoc.c:140: warning: ‘option’ may be used uninitialized in this function
> src/gjnoc.c:111: warning: ‘j3loc’ may be used uninitialized in this function
> src/gjnoc.c:111: warning: ‘i3loc’ may be used uninitialized in this function
> src/gjnoc.c:110: warning: ‘j2loc’ may be used uninitialized in this function
> src/gjnoc.c:110: warning: ‘i2loc’ may be used uninitialized in this function
> src/gjnoc.c:109: warning: ‘j1loc’ may be used uninitialized in this function
> src/gjnoc.c:109: warning: ‘i1loc’ may be used uninitialized in this function
>
> src/endianswap.h:32: warning: ‘void swap2_unaligned(void*, long int)’ defined but not used
> src/endianswap.h:46: warning: ‘void swap4_unaligned(void*, long int)’ defined but not used
> src/endianswap.h:65: warning: ‘void swap8_unaligned(void*, long int)’ defined but not used
> src/endianswap.h:96: warning: ‘void swap2_aligned(void*, long int)’ defined but not used
>
> src/vtfplugin.c:215: warning: format ‘%16s’ expects type ‘char *’, but argument 3 has type ‘char (*)[16]’
> src/vtfplugin.c:224: warning: format ‘%16s’ expects type ‘char *’, but argument 3 has type ‘char (*)[16]’
> src/vtfplugin.c:250: warning: format ‘%8s’ expects type ‘char *’, but argument 3 has type ‘char (*)[8]’
> src/vtfplugin.c:265: warning: format ‘%8s’ expects type ‘char *’, but argument 3 has type ‘char (*)[8]’
> src/vtfplugin.c:274: warning: format ‘%2s’ expects type ‘char *’, but argument 3 has type ‘char (*)[2]’
> src/vtfplugin.c:286: warning: format ‘%2s’ expects type ‘char *’, but argument 3 has type ‘char (*)[2]’
> src/vtfplugin.c:320: warning: format ‘%2s’ expects type ‘char *’, but argument 3 has type ‘char (*)[2]’
>
> src/msmsplugin.C:201: warning: dereferencing type-punned pointer will break strict-aliasing rules

-- 
NIH Resource for Macromolecular Modeling and Bioinformatics
Beckman Institute for Advanced Science and Technology
University of Illinois, 405 N. Mathews Ave, Urbana, IL 61801
Email: johns_at_ks.uiuc.edu                 Phone: 217-244-3349
  WWW: http://www.ks.uiuc.edu/~johns/      Fax: 217-244-6078