Git Product home page Git Product logo

Comments (5)

darsto avatar darsto commented on September 26, 2024

Hi,
Thanks for the report!
It's now fixed in the latest master.
D.

from brother-scand.

aphirst avatar aphirst commented on September 26, 2024

It seems this is still an issue here in master. I also tried building from @rumpeltux 's repo but seemed to get the same problem. Any update on this?

from brother-scand.

rumpeltux avatar rumpeltux commented on September 26, 2024

Did you run:

git submodule init
git submodule update

(as indicated in the updated README in above’s commit)?

from brother-scand.

aphirst avatar aphirst commented on September 26, 2024

I had neglected to do that, but still seem to get issues. Using @darsto 's version:

[alarm@alarm brother-scand]$ git submodule init && git submodule update
Submodule 'ber' (https://github.com/darsto/ber.git) registered for path 'ber'
Cloning into '/home/alarm/build/brother-scand/ber'...
Submodule path 'ber': checked out 'a047f4ee06185f99901cb2b0a07733e6874cdf10'
[alarm@alarm brother-scand]$ make
gcc -c -MM -MF build/main.d main.c
gcc -std=gnu11 -pedantic -Wall -Wextra -Werror -Wno-missing-braces -Wno-missing-field-initializers -Wno-unused-variable -Wno-unused-parameter -Wformat=2 -Wswitch-default -Wno-unused-label -Wno-unused-function -Wcast-align -Wpointer-arith -Wbad-function-cast -Wstrict-overflow=5 -Wstrict-prototypes -Winline -Wundef -Wnested-externs -Wcast-qual -Wshadow -Wunreachable-code -Wfloat-equal -Wstrict-aliasing=2 -Wredundant-decls -Wold-style-definition -c -o build/main.o main.c
gcc -c -MM -MF build/con_queue.d con_queue.c
gcc -std=gnu11 -pedantic -Wall -Wextra -Werror -Wno-missing-braces -Wno-missing-field-initializers -Wno-unused-variable -Wno-unused-parameter -Wformat=2 -Wswitch-default -Wno-unused-label -Wno-unused-function -Wcast-align -Wpointer-arith -Wbad-function-cast -Wstrict-overflow=5 -Wstrict-prototypes -Winline -Wundef -Wnested-externs -Wcast-qual -Wshadow -Wunreachable-code -Wfloat-equal -Wstrict-aliasing=2 -Wredundant-decls -Wold-style-definition -c -o build/con_queue.o con_queue.c
gcc -c -MM -MF build/log.d log.c
gcc -std=gnu11 -pedantic -Wall -Wextra -Werror -Wno-missing-braces -Wno-missing-field-initializers -Wno-unused-variable -Wno-unused-parameter -Wformat=2 -Wswitch-default -Wno-unused-label -Wno-unused-function -Wcast-align -Wpointer-arith -Wbad-function-cast -Wstrict-overflow=5 -Wstrict-prototypes -Winline -Wundef -Wnested-externs -Wcast-qual -Wshadow -Wunreachable-code -Wfloat-equal -Wstrict-aliasing=2 -Wredundant-decls -Wold-style-definition -c -o build/log.o log.c
gcc -c -MM -MF build/device_handler.d device_handler.c
gcc -std=gnu11 -pedantic -Wall -Wextra -Werror -Wno-missing-braces -Wno-missing-field-initializers -Wno-unused-variable -Wno-unused-parameter -Wformat=2 -Wswitch-default -Wno-unused-label -Wno-unused-function -Wcast-align -Wpointer-arith -Wbad-function-cast -Wstrict-overflow=5 -Wstrict-prototypes -Winline -Wundef -Wnested-externs -Wcast-qual -Wshadow -Wunreachable-code -Wfloat-equal -Wstrict-aliasing=2 -Wredundant-decls -Wold-style-definition -c -o build/device_handler.o device_handler.c
device_handler.c: In function ‘device_handler_add_device’:
device_handler.c:180:9: error: ‘dev’ may be used uninitialized in this function [-Werror=maybe-uninitialized]
         free(dev);
         ^~~~~~~~~
cc1: all warnings being treated as errors
make: *** [Makefile:27: build/device_handler.o] Error 1

In a fresh folder with @rumpeltux 's version:

[alarm@alarm brother-scand]$ git submodule init && git submodule update
Submodule 'ber' (https://github.com/darsto/ber.git) registered for path 'ber'
Cloning into '/home/alarm/build/build2/brother-scand/ber'...
Submodule path 'ber': checked out 'a047f4ee06185f99901cb2b0a07733e6874cdf10'
[alarm@alarm brother-scand]$ make
gcc -c -MM -MF build/main.d main.c
gcc -std=gnu11 -pedantic -Wall -Wextra -Werror -Wno-missing-braces -Wno-missing-field-initializers -Wno-unused-variable -Wno-unused-parameter -Wformat=2 -Wswitch-default -Wno-unused-label -Wno-unused-function -Wcast-align -Wpointer-arith -Wbad-function-cast -Wstrict-overflow=5 -Wstrict-prototypes -Winline -Wundef -Wnested-externs -Wcast-qual -Wshadow -Wunreachable-code -Wfloat-equal -Wstrict-aliasing=2 -Wredundant-decls -Wold-style-definition -c -o build/main.o main.c
gcc -c -MM -MF build/con_queue.d con_queue.c
gcc -std=gnu11 -pedantic -Wall -Wextra -Werror -Wno-missing-braces -Wno-missing-field-initializers -Wno-unused-variable -Wno-unused-parameter -Wformat=2 -Wswitch-default -Wno-unused-label -Wno-unused-function -Wcast-align -Wpointer-arith -Wbad-function-cast -Wstrict-overflow=5 -Wstrict-prototypes -Winline -Wundef -Wnested-externs -Wcast-qual -Wshadow -Wunreachable-code -Wfloat-equal -Wstrict-aliasing=2 -Wredundant-decls -Wold-style-definition -c -o build/con_queue.o con_queue.c
gcc -c -MM -MF build/log.d log.c
gcc -std=gnu11 -pedantic -Wall -Wextra -Werror -Wno-missing-braces -Wno-missing-field-initializers -Wno-unused-variable -Wno-unused-parameter -Wformat=2 -Wswitch-default -Wno-unused-label -Wno-unused-function -Wcast-align -Wpointer-arith -Wbad-function-cast -Wstrict-overflow=5 -Wstrict-prototypes -Winline -Wundef -Wnested-externs -Wcast-qual -Wshadow -Wunreachable-code -Wfloat-equal -Wstrict-aliasing=2 -Wredundant-decls -Wold-style-definition -c -o build/log.o log.c
gcc -c -MM -MF build/device_handler.d device_handler.c
gcc -std=gnu11 -pedantic -Wall -Wextra -Werror -Wno-missing-braces -Wno-missing-field-initializers -Wno-unused-variable -Wno-unused-parameter -Wformat=2 -Wswitch-default -Wno-unused-label -Wno-unused-function -Wcast-align -Wpointer-arith -Wbad-function-cast -Wstrict-overflow=5 -Wstrict-prototypes -Winline -Wundef -Wnested-externs -Wcast-qual -Wshadow -Wunreachable-code -Wfloat-equal -Wstrict-aliasing=2 -Wredundant-decls -Wold-style-definition -c -o build/device_handler.o device_handler.c
gcc -c -MM -MF build/event_thread.d event_thread.c
gcc -std=gnu11 -pedantic -Wall -Wextra -Werror -Wno-missing-braces -Wno-missing-field-initializers -Wno-unused-variable -Wno-unused-parameter -Wformat=2 -Wswitch-default -Wno-unused-label -Wno-unused-function -Wcast-align -Wpointer-arith -Wbad-function-cast -Wstrict-overflow=5 -Wstrict-prototypes -Winline -Wundef -Wnested-externs -Wcast-qual -Wshadow -Wunreachable-code -Wfloat-equal -Wstrict-aliasing=2 -Wredundant-decls -Wold-style-definition -c -o build/event_thread.o event_thread.c
gcc -c -MM -MF build/config.d config.c
gcc -std=gnu11 -pedantic -Wall -Wextra -Werror -Wno-missing-braces -Wno-missing-field-initializers -Wno-unused-variable -Wno-unused-parameter -Wformat=2 -Wswitch-default -Wno-unused-label -Wno-unused-function -Wcast-align -Wpointer-arith -Wbad-function-cast -Wstrict-overflow=5 -Wstrict-prototypes -Winline -Wundef -Wnested-externs -Wcast-qual -Wshadow -Wunreachable-code -Wfloat-equal -Wstrict-aliasing=2 -Wredundant-decls -Wold-style-definition -c -o build/config.o config.c
gcc -c -MM -MF build/connection.d connection.c
gcc -std=gnu11 -pedantic -Wall -Wextra -Werror -Wno-missing-braces -Wno-missing-field-initializers -Wno-unused-variable -Wno-unused-parameter -Wformat=2 -Wswitch-default -Wno-unused-label -Wno-unused-function -Wcast-align -Wpointer-arith -Wbad-function-cast -Wstrict-overflow=5 -Wstrict-prototypes -Winline -Wundef -Wnested-externs -Wcast-qual -Wshadow -Wunreachable-code -Wfloat-equal -Wstrict-aliasing=2 -Wredundant-decls -Wold-style-definition -c -o build/connection.o connection.c
gcc -c -MM -MF build/data_channel.d data_channel.c
gcc -std=gnu11 -pedantic -Wall -Wextra -Werror -Wno-missing-braces -Wno-missing-field-initializers -Wno-unused-variable -Wno-unused-parameter -Wformat=2 -Wswitch-default -Wno-unused-label -Wno-unused-function -Wcast-align -Wpointer-arith -Wbad-function-cast -Wstrict-overflow=5 -Wstrict-prototypes -Winline -Wundef -Wnested-externs -Wcast-qual -Wshadow -Wunreachable-code -Wfloat-equal -Wstrict-aliasing=2 -Wredundant-decls -Wold-style-definition -c -o build/data_channel.o data_channel.c
data_channel.c: In function ‘exchange_params2’:
data_channel.c:562:43: error: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Werror=sign-compare]
     if (msg_len < 0 || (unsigned) msg_len != buf - data_channel->buf) {
                                           ^~
cc1: all warnings being treated as errors
make: *** [Makefile:27: build/data_channel.o] Error 1

So, either way, I'm still unable to build.

from brother-scand.

rumpeltux avatar rumpeltux commented on September 26, 2024

I cannot really reproduce, but you can try make clean; make CFLAGS=

from brother-scand.

Related Issues (7)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.