Giter Site home page Giter Site logo

Comments (2)

wareck avatar wareck commented on August 18, 2024 1

thanks for you work.
i'm working on it, , add your fixes and made some modification for windows compilation
for macos I haven't test it yet
best regards
olivier

from cgminer-gekko.

chipjarred avatar chipjarred commented on August 18, 2024

I'm not sure if you saw, but I had also submitted a pull request, which I then closed because it contained a boneheaded mistake (a memory leak that wasn't). But it also contained a valid fix, and I haven't resubmitted. cgminer.c calls subscribe_extranonce(), which is defined in util.c, but util.h doesn't contain a prototype for it, which triggered an illegal implicit prototype error, preventing the build. Obviously the fix is simply just adding the prototype to util.h.

Not in that pull request are fixes to util.c for references to interrupted() that emit warnings because they are just references to the function name rather than a call to the function, which of course evaluates to a function pointer rather than the function's return value. Since those instances are part of if conditions, the function pointer always evaluates to true. It's clear from the code's context that's actually trying to handle an interruption rather than detect a valid function pointer, plus it's an idiom used in several other places in the code where it actually does call the function.

from cgminer-gekko.

Related Issues (20)

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.