[torquedev] Release Candidate for TORQUE 2.5.8

Glen Beane glen.beane at gmail.com
Mon Aug 22 19:40:10 MDT 2011


On Mon, Aug 22, 2011 at 9:24 PM, Christopher Samuel
<samuel at unimelb.edu.au>wrote:

> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> On 19/08/11 06:48, Martin Siegert wrote:
>
> > I just compiled this by accident with gcc-4.4.0 (instead of gcc-4.1.2
> > which I usually use). gcc-4.4.0 spits out even more errors:
> >
> > cc1: warnings being treated as errors
> > job_route.c: In function ‘initialize_procct’:
> > job_route.c:210: error: ‘pprocsp’ may be used uninitialized in this
> > function
> > make[2]: *** [job_route.o] Error 1
> >
> > This can be fixed by adding a line
> >
> >     pprocsp = NULL;
> >
> > before the
> >     if(pprocs_def != NULL)
> > statement.
>
> It might be better to fix it by just initialising it to
> NULL at declaration time, thus:
>
>  resource     *pprocsp=NULL;
>
> > But then:
> >
> > cc1: warnings being treated as errors
> > process_request.c: In function ‘get_creds’:
> > process_request.c:288: error: dereferencing type-punned pointer will
> > break strict-aliasing rules
> > make[2]: *** [process_request.o] Error 1
>
> That doesn't appear for me at all under GCC 4.5.2, instead
> I get a failure in the PAM code:
>
>  gcc -DHAVE_CONFIG_H -I. -I. -I../../src/include -I../../src/include
> -DPBS_SERVER_HOME=\"/var/spool/torque\" -g -O2 -W -Wall
> -Wno-unused-parameter -Wno-long-long -pedantic -Werror -D_LARGEFILE64_SOURCE
> -DGEOMETRY_REQUESTS -DALWAYS_USE_CPUSETS -MT pam_pbssimpleauth.lo -MD -MP
> -MF .deps/pam_pbssimpleauth.Tpo -c pam_pbssimpleauth.c  -fPIC -DPIC -o
> .libs/pam_pbssimpleauth.o
> cc1: warnings being treated as errors
> pam_pbssimpleauth.c: In function 'pam_sm_authenticate':
> pam_pbssimpleauth.c:125:3: error: passing argument 1 of 'getpwnam_ext'
> discards qualifiers from pointer target type
> ../../src/include/utils.h:140:23: note: expected 'char *' but argument is
> of type 'const char *'
>
>
> A good reason not to disable warnings!
>


why were warnings disabled?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.supercluster.org/pipermail/torquedev/attachments/20110822/4a887e64/attachment.html 


More information about the torquedev mailing list