This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author martin.panter
Recipients christian.heimes, jeremy.kloth, jkloth, mark.dickinson, martin.panter, vstinner
Date 2016-08-11.12:52:33
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1470919954.63.0.319852089724.issue15495@psf.upfronthosting.co.za>
In-reply-to
Content
Issue 23545 has a patch with some comments from me about adding other warnings via “autoconf foo”, so you could copy from that if you want.

The few warnings that I glanced at do not look troublesome. But maybe it is worth working around them to see other warnings; I dunno. Adding explicit casts can sometimes hide other bugs. Anyway, here is a random selection of some warnings:

Modules/sha256module.c:198:44: warning: conversion to ‘SHA_INT32 {aka unsigned int}’ from ‘long unsigned int’ may alter its value [-Wconversion]
     RND(S[0],S[1],S[2],S[3],S[4],S[5],S[6],S[7],48,0x19a4c116);
                                            ^
Modules/sha256module.c:145:11: note: in definition of macro ‘RND’
      t0 = h + Sigma1(e) + Ch(e, f, g) + ki + W[i];   \
           ^
Modules/resource.c:19:60: warning: conversion to ‘double’ from ‘__suseconds_t {aka long int}’ may alter its value [-Wconversion]
 #define doubletime(TV) ((double)(TV).tv_sec + (TV).tv_usec * 0.000001)
                                                            ^
./Include/tupleobject.h:62:75: note: in definition of macro ‘PyTuple_SET_ITEM’
 #define PyTuple_SET_ITEM(op, i, v) (((PyTupleObject *)(op))->ob_item[i] = v)
                                                                           ^
Modules/resource.c:82:5: note: in expansion of macro ‘PyStructSequence_SET_ITEM’
     PyStructSequence_SET_ITEM(result, 0,
     ^~~~~~~~~~~~~~~~~~~~~~~~~
Modules/resource.c:83:40: note: in expansion of macro ‘doubletime’
                     PyFloat_FromDouble(doubletime(ru.ru_utime)));
                                        ^~~~~~~~~~
Modules/cjkcodecs/cjkcodecs.h:155:27: warning: conversion to ‘unsigned char’ from ‘int’ may alter its value [-Wconversion]
     do { ((*outbuf)[1]) = (c); } while (0)
                           ^
Modules/cjkcodecs/_codecs_kr.c:58:13: note: in expansion of macro ‘OUTBYTE2’
             OUTBYTE2((code & 0xFF) | 0x80);
             ^~~~~~~~
Modules/_ctypes/cfield.c:439:15: warning: conversion to ‘short int’ from ‘int’ may alter its value [-Wconversion]
         v >>= (sizeof(v)*8 - NUM_BITS(size));                           \
               ^
Modules/_ctypes/cfield.c:594:5: note: in expansion of macro ‘GET_BITFIELD’
     GET_BITFIELD(val, size);
     ^~~~~~~~~~~~
History
Date User Action Args
2016-08-11 12:52:34martin.pantersetrecipients: + martin.panter, mark.dickinson, vstinner, christian.heimes, jkloth, jeremy.kloth
2016-08-11 12:52:34martin.pantersetmessageid: <1470919954.63.0.319852089724.issue15495@psf.upfronthosting.co.za>
2016-08-11 12:52:34martin.panterlinkissue15495 messages
2016-08-11 12:52:33martin.pantercreate