Skip to content

fix various warnings - #1

Open
0xAdk wants to merge 4 commits into
rhmodding:mainfrom
0xAdk:feat/fix-warnings
Open

fix various warnings#1
0xAdk wants to merge 4 commits into
rhmodding:mainfrom
0xAdk:feat/fix-warnings

Conversation

@0xAdk

@0xAdk 0xAdk commented Jul 25, 2026

Copy link
Copy Markdown

Fixes most of the warnings produced by the cmake configuration, cmake build, and some from the cc-wrapper when building using the nix devshell.

0xAdk added 4 commits July 24, 2026 14:18
It seems like switch-tools was removed from libhakkun's nix/default.nix
file. There was only result online of a `switch-tools` package so I
chose to vender it instead of remove the `SWITCHTOOLS` env var since I
don't know what it's for.
These flags were unset and generating warnings about the default values
they were defaulting to. This simply copies those default values to
silence the warnings.
I'm not sure if this is the correct solution. Usually when cross
compiling under nix you'd want setup nixpkgs to use the correct
`crossSystem`. This is because compilers usually get wrapped differently
based on the different target they are going to be used to build for,
but I wasn't able to get that to work in testing.
It would be preferable to only silence these warnings when building the
dependencies themselves, but that's only possible if the dependencies
were being added using cmakes more modern target system.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant