Giter Club home page Giter Club logo

Comments (6)

valeriob01 avatar valeriob01 commented on August 30, 2024

Hi Mihai, I have rerun cppcheck locally, there is still 1 warning and 1 error, let alone the style issue:

gpuowl_5.0/gpuowl$ cppcheck --enable=all --quiet .
[GCD.h:11]: (style) The class 'GCD' does not have a constructor.
[./Result.cpp:24]: (information) Skipping configuration 'REV' since the value of 'REV' is unknown. Use -D if you want to check it. You can use -U to skip it explicitly.
[common.cpp:16]: (warning) Return value of function fopen() is not used.
[common.cpp:16]: (error) Return value of allocation function 'fopen' is not stored.

[./gpuowl.cpp:13]: (information) Skipping configuration 'REV' since the value of 'REV' is unknown. Use -D if you want to check it. You can use -U to skip it explicitly.
(information) Cppcheck cannot find all the include files (use --check-config for details)

from gpuowl.

preda avatar preda commented on August 30, 2024

I don't get the warning+error when I run cppcheck with the same arguments on my system. I also looked at the source at that location (common.cpp:16), and it seems to me that cppcheck is wrong (it's a red herring).

from gpuowl.

valeriob01 avatar valeriob01 commented on August 30, 2024

Then probably it is a Debian specific issue or then it is a cppcheck issue.
Maybe it is the case to file a cppcheck bug.
I am going to use the current source as it is for packaging.

from gpuowl.

valeriob01 avatar valeriob01 commented on August 30, 2024

I don't get the warning+error when I run cppcheck with the same arguments on my system. I also looked at the source at that location (common.cpp:16), and it seems to me that cppcheck is wrong (it's a red herring).

Hi Mihai, my system is: #1 SMP Debian 4.9.130-2 (2018-10-27)

this is the output of uname -v command, can you post yours?

from gpuowl.

preda avatar preda commented on August 30, 2024

~$ uname -va
Linux x2 4.18.0-12-generic #13-Ubuntu SMP Wed Nov 14 15:17:05 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux

from gpuowl.

valeriob01 avatar valeriob01 commented on August 30, 2024

I am running version 1.76.1 of cppcheck, it is probably earlier than your version.

from gpuowl.

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.