dputhier / libgtftk

gtftk C Library and program

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Warnings upon compilation

dputhier opened this issue · comments

We still have some warnings upon package installation (with Python 3):

pygtftk/src/libgtftk/command/get_sequences.c:213:19: warning: comparison of integers of different signs: 'int' and 'unsigned long' [-Wsign-compare]
                                maxLineSize = MAX(maxLineSize, strlen(buffer));
                                              ^   ~~~~~~~~~~~  ~~~~~~~~~~~~~~
pygtftk/src/libgtftk/libgtftk.h:54:22: note: expanded from macro 'MAX'
#define MAX(x, y) (x > y ? x : y)
                   ~ ^ ~
pygtftk/src/libgtftk/command/get_sequences.c:247:20: warning: comparison of integers of different signs: 'int' and 'unsigned long' [-Wsign-compare]
                                        maxLineSize = MAX(maxLineSize, strlen(buffer));
                                                      ^   ~~~~~~~~~~~  ~~~~~~~~~~~~~~
pygtftk/src/libgtftk/libgtftk.h:54:22: note: expanded from macro 'MAX'
#define MAX(x, y) (x > y ? x : y)
                   ~ ^ ~
pygtftk/src/libgtftk/command/get_sequences.c:269:16: warning: comparison of integers of different signs: 'unsigned int' and 'int' [-Wsign-compare]
        for (k = 0; k < seq->features->nb; k++) {
                    ~ ^ ~~~~~~~~~~~~~~~~~
3 warnings generated.

I have pushed the fixes (in develop).