Giter Site home page Giter Site logo

max-sdk-base's People

Contributors

alexharker avatar hiddedejong avatar isabelgk avatar jeremybernstein avatar robtherich avatar x37v avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

max-sdk-base's Issues

"Offset of on non-standard-layout type" warning on new SDK (C++) in Xcode

Since moving to max-sdk-base (from the old max-sdk, prior to this separation) I've been getting these warnings about macros like:

CLASS_ATTR_SYM

in Xcode where the max object is a C++ object (I'm not using the min-api I have my own C++ wrapper). The warning does not occur for exactly the same code if I switch back to the old SDK, so it's related to the SDK, and not Xcode version/compiler etc. I cannot find any relevant pragmas that would have previously been suppressing the warning, nor do my types have any virtual methods.

Everything still works as expected, but it is a bit tedious - do you have any pointers for why this might have changed and if I can suppress the warnings?

Xcode throws warning: "This function declaration is not a prototype"

Hi there,

I am on Mac using Xcode 13.2.1, and when compiling externals there are some compiler warnings in max-sdk-base saying "This function declaration is not a prototype". It suggests to add void to the method body, which will resolve it.

I am guessing this happens when compiling sources as C++ files, as opposed to pure C files, which won't trigger the warnings.
I believe it is harmless, but annoying indeed... Could it be fixed in a future update?

Visual Studio 2019 / Resharper Warning in IDE

I ran into a warning in VS 2019 while running Resharper and iggylabs suggested I post it here as an open question. This only appears in the IDE and doesn't block building the project, so it's not a big deal, but still might be worth looking at, as the Resharper Code Analysis feature is handy to have active.

The issue impacts a few of the ATTR macros. In particular, CLASS_ATTR_RGBA will be highlighted with red squiggles in the IDE and display an error "Cannot resolve symbol 'C74_VARFUN_4'" CLASS_ATTR_DEFAULT has a similar error, but displays 'C74_VARFUN_2' instead. Other attribute macros like CLASS_ATTR_INT32 and CLASS_ATTR_DOUBLE don't display any error.

Some details on my environment:

  1. I'm running VS 2019 (Release 16.10.4).
  2. I'm running Resharper 2021.1.4.
  3. The error only displays when Resharper Code Analysis is active.

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.