classification
Title: clang compiler warnings on Travis
Type: compile error Stage: resolved
Components: Extension Modules Versions: Python 2.7
process
Status: closed Resolution: out of date
Dependencies: Superseder:
Assigned To: Nosy List: christian.heimes, iritkatriel
Priority: low Keywords:

Created on 2018-02-25 13:28 by christian.heimes, last changed 2021-06-22 22:06 by iritkatriel. This issue is now closed.

Messages (2)
msg312810 - (view) Author: Christian Heimes (christian.heimes) * (Python committer) Date: 2018-02-25 13:28
I'm seeing a bunch of compile errors on 2.7 branch, https://travis-ci.org/python/cpython/jobs/345906584


/home/travis/build/python/cpython/Modules/_heapqmodule.c:600:21: warning: illegal character encoding in string literal [-Winvalid-source-encoding]
[explanation by Fran<E7>ois Pinard]\n\
                    ^~~~
Include/Python.h:174:60: note: expanded from macro 'PyDoc_STRVAR'
#define PyDoc_STRVAR(name,str) PyDoc_VAR(name) = PyDoc_STR(str)
                                                           ^
Include/Python.h:176:24: note: expanded from macro 'PyDoc_STR'
#define PyDoc_STR(str) str
                       ^
1 warning generated.

clang -pthread -fno-strict-aliasing -OPT:Olimit=0 -g -O2 -g -O0 -Wall -Wstrict-prototypes  -I. -IInclude -I./Include   -DPy_BUILD_CORE  -c ./Modules/pwdmodule.c -o Modules/pwdmodule.o
./Modules/posixmodule.c:363:13: warning: comparison of constant 9223372036854775807 with expression of type 'uid_t' (aka 'unsigned int') is always true [-Wtautological-constant-out-of-range-compare]
    if (uid <= LONG_MAX)
        ~~~ ^  ~~~~~~~~
./Modules/posixmodule.c:371:13: warning: comparison of constant 9223372036854775807 with expression of type 'gid_t' (aka 'unsigned int') is always true [-Wtautological-constant-out-of-range-compare]
    if (gid <= LONG_MAX)
        ~~~ ^  ~~~~~~~~
clang -pthread -fno-strict-aliasing -OPT:Olimit=0 -g -O2 -g -O0 -Wall -Wstrict-prototypes  -I. -IInclude -I./Include   -DPy_BUILD_CORE  -c ./Modules/_sre.c -o Modules/_sre.o
clang -pthread -fno-strict-aliasing -OPT:Olimit=0 -g -O2 -g -O0 -Wall -Wstrict-prototypes  -I. -IInclude -I./Include   -DPy_BUILD_CORE  -c ./Modules/_codecsmodule.c -o Modules/_codecsmodule.o
./Modules/pwdmodule.c:115:17: warning: comparison of unsigned expression < 0 is always false [-Wtautological-compare]
        if (uid < 0)
            ~~~ ^ ~
1 warning generated.

/home/travis/build/python/cpython/Modules/grpmodule.c:102:17: warning: comparison of unsigned expression < 0 is always false [-Wtautological-compare]
        if (gid < 0)
            ~~~ ^ ~
1 warning generated.

/cpython/Modules/nismodule.c -o build/temp.linux-x86_64-2.7-pydebug/home/travis/build/python/cpython/Modules/nismodule.o
/home/travis/build/python/cpython/Modules/nismodule.c:404:15: warning: 
      explicitly assigning value of variable of type 'nismaplist *' (aka
      'struct nismaplist *') to itself [-Wself-assign]
    for (maps = maps; maps; maps = maps->next) {
         ~~~~ ^ ~~~~
1 warning generated.

/cpython/Modules/_cursesmodule.c -o build/temp.linux-x86_64-2.7-pydebug/home/travis/build/python/cpython/Modules/_cursesmodule.o
/home/travis/build/python/cpython/Modules/_cursesmodule.c:1082:15: warning: 
      implicit conversion from 'chtype' (aka 'unsigned long') to 'int' changes
      value from 18446744073709551615 to -1 [-Wconstant-conversion]
        rtn = mvwinch(self->win,y,x);
            ~ ^~~~~~~~~~~~~~~~~~~~~~
/usr/include/curses.h:1247:58: note: expanded from macro 'mvwinch'
  ...(wmove((win),(y),(x)) == ERR ? NCURSES_CAST(chtype, ERR) : winch(win))
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/curses.h:222:34: note: expanded from macro 'NCURSES_CAST'
#define NCURSES_CAST(type,value) (type)(value)
                                 ^~~~~~~~~~~~~
1 warning generated.
msg396368 - (view) Author: Irit Katriel (iritkatriel) * (Python committer) Date: 2021-06-22 22:06
2.7-specific issue.
History
Date User Action Args
2021-06-22 22:06:11iritkatrielsetstatus: open -> closed

nosy: + iritkatriel
messages: + msg396368

resolution: out of date
stage: needs patch -> resolved
2018-02-25 13:28:39christian.heimescreate