ImageMagick: Silence flood of deprecation warnings from GCC#195766
ImageMagick: Silence flood of deprecation warnings from GCC#195766YoshiRulz wants to merge 1 commit intoNixOS:stagingfrom
Conversation
|
I've been looking into this PR, and I think there's something dodgy about the way nixpkgs is using Per the relevant documentation, the The I think the right thing to do here is drop the |
I believe this is Nix-specific as it didn't appear during manual build on Arch or in upstream's CI (Ubuntu Docker image). The message, printed for every source file, is: cc1: warning: '-mtune=x86-64' is deprecated; use '-mtune=k8' or '-mtune=generic' instead as appropriate [8;;https://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html#index-Wdeprecated-Wdeprecated8;;]
0aed68f to
32f0073
Compare
Description of changes
When building ImageMagick there's a warning on seemingly every source file:
...obscuring "real" warnings. This PR applies the suggested fix of s/
-mtune=x86-64/-mtune=generic/.Resubmission of #195757 to target branch
staging. Apologies for the notif spam. GitHub should really put a warning on that.And to answer @AndersonTorres' question, I believe this is Nix-specific as the warning didn't appear during a manual build on my Manjaro machine nor in upstream's CI (Ubuntu Docker image).
Things done
nix.conf? (See Nix manual)sandbox = relaxedsandbox = truenix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage./result/bin/)Add a 👍 reaction to pull requests you find important.