Code Monkey home page Code Monkey logo

Comments (4)

jimklimov avatar jimklimov commented on June 2, 2024

Ugh, conversely from GCC-11, the CLANG-14 compiler complains about the proposed fix to remove <H> from (just) the destructor name:

In file included from nutipc.cpp:43:
../include/nutipc.hpp:817:25: error: ISO C++ requires the name after '::~' to be found in the same scope as the name before '::~' [-Werror,-Wdtor-name]
Signal::HandlerThread<H>::~HandlerThread()
~~~~~~~~~~~~~~~~~~~~~~~~^~
                        ::HandlerThread

from nut.

jimklimov avatar jimklimov commented on June 2, 2024

Hot-fixing the latter by ifdef clang, although a more diligent feature-based configure time check (and defined flag) would be better if this problem sprawls over time.

Or use feature-check macros (where available) like this discussion suggests: https://stackoverflow.com/questions/1617877/how-to-detect-llvm-and-its-version-through-define-directives

from nut.

jimklimov avatar jimklimov commented on June 2, 2024

Now there's more where that's coming from:

nutscan-display.c: In function 'nutscan_display_sanity_check_serial':
nutscan-display.c:264:29: error: 'calloc' sizes specified with 'sizeof' in the earlier argument and not in the later argument [-Werror=calloc-transposed-args]
  264 |         map = calloc(sizeof(keyval_strings_t), listlen);
      |                             ^~~~~~~~~~~~~~~~
nutscan-display.c:264:29: note: earlier argument should specify number of elements, later size of each element

from nut.

jimklimov avatar jimklimov commented on June 2, 2024

Reproduced on an interactive Windows environment, that was actually the last of it, hopefully. But an updated MinGW PERL acted up :\

from nut.

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.