Git Product home page Git Product logo

ctypes's People

Contributors

xeechou avatar

Watchers

 avatar

ctypes's Issues

build failed: 'fread', declared with attribute warn_unused_result

Hi there, I'm attempting to build taiwins but it errors out with this:

ninja: Entering directory `build'
[1/428] Compiling C object subprojects/ctypes/libctypes.a.p/src_list.c.o
[2/428] Compiling C object subprojects/ctypes/libctypes.a.p/src_vector.c.o
[3/428] Compiling C object subprojects/ctypes/libctypes.a.p/src_vtree.c.o
[4/428] Compiling C object subprojects/ctypes/libctypes.a.p/src_stack.c.o
[5/428] Compiling C object subprojects/ctypes/libctypes.a.p/src_dhash.c.o
[6/428] Compiling C object subprojects/ctypes/libctypes.a.p/src_queue.c.o
[7/428] Compiling C object subprojects/ctypes/libctypes.a.p/src_os_buffer.c.o
[8/428] Compiling C object subprojects/ctypes/libctypes.a.p/src_os_os-compatibility.c.o
[9/428] Compiling C object subprojects/ctypes/libctypes.a.p/src_os_exec.c.o
[10/428] Compiling C object subprojects/ctypes/libctypes.a.p/src_os_file.c.o
FAILED: subprojects/ctypes/libctypes.a.p/src_os_file.c.o
cc -Isubprojects/ctypes/libctypes.a.p -Isubprojects/ctypes -I../subprojects/ctypes -I../subprojects/ctypes/include -flto -fdiagnostics-color=always -DNDEBUG -pipe -D_FILE_OFFSET_BITS=64 -Werror -std=gnu11 -Wno-unused-parameter -Wno-missing-field-initializers -Wno-pedantic -fstack-clash-protection -D_FORTIFY_SOURCE=2 -mtune=generic -O2 -fPIC -Wno-unused-parameter -Wno-missing-field-initializers -Wno-pedantic -MD -MQ subprojects/ctypes/libctypes.a.p/src_os_file.c.o -MF subprojects/ctypes/libctypes.a.p/src_os_file.c.o.d -o subprojects/ctypes/libctypes.a.p/src_os_file.c.o -c ../subprojects/ctypes/src/os/file.c
../subprojects/ctypes/src/os/file.c: In function 'file_read':
../subprojects/ctypes/src/os/file.c:46:3: error: ignoring return value of 'fread', declared with attribute warn_unused_result [-Werror=unused-result]
   46 |   fread(mem, sizeof(char), _size, stream);
      |   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
cc1: all warnings being treated as errors
ninja: build stopped: subcommand failed.

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.