Skip to content

BLD: build warnings #25995

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
jreback opened this issue Apr 5, 2019 · 1 comment
Closed

BLD: build warnings #25995

jreback opened this issue Apr 5, 2019 · 1 comment
Labels
Build Library building on various platforms
Milestone

Comments

@jreback
Copy link
Contributor

jreback commented Apr 5, 2019

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.
@jreback jreback added the Build Library building on various platforms label Apr 5, 2019
@jreback jreback added this to the 0.25.0 milestone Apr 5, 2019
@jreback jreback changed the title BLD: tokenizer.c build warnings BLD: build warnings Apr 5, 2019
@jreback jreback modified the milestones: 0.25.0, 1.0 Apr 20, 2019
@jbrockmendel
Copy link
Member

These have all been addressed. Closing as duplicate.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Build Library building on various platforms
Projects
None yet
Development

No branches or pull requests

2 participants