Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

warning: unexpected cfg condition value: custom-heap --> programs/voting/src/lib.rs:7:1 #3401

Closed
sflomm opened this issue Dec 3, 2024 · 1 comment
Labels

Comments

@sflomm
Copy link

sflomm commented Dec 3, 2024

I've tried installing anchor + SOLANA as per the docs 5 times now, the local validator works and i can push npx create-solana-dapp to a local port and the connect to the local net.
However i keep getting these warnings everytime i compile with "anchor build" using mods like #[account].

image
image
image
image

I always get anchor-debug, solana and custom-panic, no matter what mod i use.

@acheroncrypto
Copy link
Collaborator

Thanks for creating the issue. This is a recent nightly compiler change, but it's quite useless in this case since they are resulting from external macros. You can ignore these warnings by including:

#![allow(unexpected_cfgs)]

at the top of your lib.rs file.

We also decided to ignore all nightly compiler warnings recently in #3396 in order to avoid showing redundant warnings.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants