Skip to content

BLD: build warnings #25995

Closed
Closed
@jreback

Description

@jreback

some warnings I am seeing; I think these are somewhat recently introduced.

/include/python3.7m -c pandas/_libs/src/parser/tokenizer.c -o build/temp.macosx-10.7-x86_64-3.7/pandas/_libs/src/parser/tokenizer.o -Wno-unused-function
pandas/_libs/src/parser/tokenizer.c:302:34: warning: comparison of integers of different signs: 'unsigned long long' and 'int64_t' (aka 'long long') [-Wsign-compare]
    if (self->words_len + nbytes < self->max_words_cap) {
        ~~~~~~~~~~~~~~~~~~~~~~~~ ^ ~~~~~~~~~~~~~~~~~~~
pandas/_libs/src/parser/tokenizer.c:1121:41: warning: comparison of integers of different signs: 'int64_t' (aka 'long long') and 'unsigned long long' [-Wsign-compare]
                            self->lines == start_lines + line_limit) {
                            ~~~~~~~~~~~ ^  ~~~~~~~~~~~~~~~~~~~~~~~~
pandas/_libs/src/parser/tokenizer.c:1210:15: warning: comparison of integers of different signs: 'size_t' (aka 'unsigned long') and 'int64_t' (aka 'long long') [-Wsign-compare]
    if (nrows > self->lines) {
        ~~~~~ ^ ~~~~~~~~~~~
pandas/_libs/src/parser/tokenizer.c:1247:19: warning: comparison of integers of different signs: 'int64_t' (aka 'long long') and 'unsigned long long' [-Wsign-compare]
    for (i = 0; i < self->lines - nrows + 1; ++i) {
                ~ ^ ~~~~~~~~~~~~~~~~~~~~~~~
pandas/_libs/src/parser/tokenizer.c:1287:17: warning: comparison of integers of different signs: 'size_t' (aka 'unsigned long') and 'int64_t' (aka 'long long') [-Wsign-compare]
    if (new_cap < self->words_cap) {
        ~~~~~~~ ^ ~~~~~~~~~~~~~~~
pandas/_libs/src/parser/tokenizer.c:1311:17: warning: comparison of integers of different signs: 'size_t' (aka 'unsigned long') and 'int64_t' (aka 'long long') [-Wsign-compare]
    if (new_cap < self->stream_cap) {
        ~~~~~~~ ^ ~~~~~~~~~~~~~~~~
pandas/_libs/src/parser/tokenizer.c:1339:17: warning: comparison of integers of different signs: 'size_t' (aka 'unsigned long') and 'int64_t' (aka 'long long') [-Wsign-compare]
    if (new_cap < self->lines_cap) {
        ~~~~~~~ ^ ~~~~~~~~~~~~~~~
pandas/_libs/src/parser/tokenizer.c:1379:47: warning: comparison of integers of different signs: 'long long' and 'size_t' (aka 'unsigned long') [-Wsign-compare]
        if (!all && self->lines - start_lines >= nrows) break;
                    ~~~~~~~~~~~~~~~~~~~~~~~~~ ^  ~~~~~
8 warnings generated.
gcc -bundle -undefined dynamic_lookup -L/Users/jreback/miniconda3/envs/pandas/lib -arch x86_64 -L/Users/jreback/miniconda3/envs/pandas/lib -arch x86_64 -arch x86_64 build/temp.macosx-10.7-x86_64-3.7/pandas/_libs/lib.o build/temp.macosx-10.7-x86_64-3.7/pandas/_libs
s/_libs/tslibs -I./pandas/_libs -Ipandas/_libs/tslibs/src -Ipandas/_libs/tslibs -I/Users/jreback/miniconda3/envs/pandas/lib/python3.7/site-packages/numpy/core/include -I/Users/jreback/miniconda3/envs/pandas/include/python3.7m -c pandas/_libs/tslib.c -o build/temp.macosx-10.7-x86_64-3.7/pandas/_libs/tslib.o -Wno-unused-function
pandas/_libs/tslib.c:3854:21: warning: incompatible pointer types assigning to 'PyObject *' (aka 'struct _object *') from 'struct __pyx_obj_6pandas_5_libs_6tslibs_7nattype__NaT *' [-Wincompatible-pointer-types]
        *__pyx_t_15 = __pyx_v_6pandas_5_libs_6tslibs_7nattype_c_NaT;
                    ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
pandas/_libs/tslib.c:3960:21: warning: incompatible pointer types assigning to 'PyObject *' (aka 'struct _object *') from 'struct __pyx_obj_6pandas_5_libs_6tslibs_7nattype__NaT *' [-Wincompatible-pointer-types]
        *__pyx_t_15 = __pyx_v_6pandas_5_libs_6tslibs_7nattype_c_NaT;
                    ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
pandas/_libs/tslib.c:4194:23: warning: incompatible pointer types assigning to 'PyObject *' (aka 'struct _object *') from 'struct __pyx_obj_6pandas_5_libs_6tslibs_7nattype__NaT *' [-Wincompatible-pointer-types]
          *__pyx_t_15 = __pyx_v_6pandas_5_libs_6tslibs_7nattype_c_NaT;
                      ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
pandas/_libs/tslib.c:4301:23: warning: incompatible pointer types assigning to 'PyObject *' (aka 'struct _object *') from 'struct __pyx_obj_6pandas_5_libs_6tslibs_7nattype__NaT *' [-Wincompatible-pointer-types]
          *__pyx_t_15 = __pyx_v_6pandas_5_libs_6tslibs_7nattype_c_NaT;
                      ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
pandas/_libs/tslib.c:4430:23: warning: incompatible pointer types assigning to 'PyObject *' (aka 'struct _object *') from 'struct __pyx_obj_6pandas_5_libs_6tslibs_7nattype__NaT *' [-Wincompatible-pointer-types]
          *__pyx_t_15 = __pyx_v_6pandas_5_libs_6tslibs_7nattype_c_NaT;
                      ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
pandas/_libs/tslib.c:8097:19: warning: incompatible pointer types assigning to 'PyObject *' (aka 'struct _object *') from 'struct __pyx_obj_6pandas_5_libs_6tslibs_7nattype__NaT *' [-Wincompatible-pointer-types]
      *__pyx_t_38 = __pyx_v_6pandas_5_libs_6tslibs_7nattype_c_NaT;
                  ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
pandas/_libs/tslib.c:8173:21: warning: incompatible pointer types assigning to 'PyObject *' (aka 'struct _object *') from 'struct __pyx_obj_6pandas_5_libs_6tslibs_7nattype__NaT *' [-Wincompatible-pointer-types]
        *__pyx_t_38 = __pyx_v_6pandas_5_libs_6tslibs_7nattype_c_NaT;
                    ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
pandas/_libs/tslib.c:8399:21: warning: incompatible pointer types assigning to 'PyObject *' (aka 'struct _object *') from 'struct __pyx_obj_6pandas_5_libs_6tslibs_7nattype__NaT *' [-Wincompatible-pointer-types]
        *__pyx_t_38 = __pyx_v_6pandas_5_libs_6tslibs_7nattype_c_NaT;
                    ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
8 warnings generated.

Metadata

Metadata

Assignees

No one assigned

    Labels

    BuildLibrary building on various platforms

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions