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

os/pm: resolve build warnings #6463

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

gSahitya-samsung
Copy link
Contributor

@gSahitya-samsung gSahitya-samsung commented Oct 24, 2024

This commit resolve the below build warnings:

warning: 'pm_state_name' defined but not used
warning: 'wakeup_src_name' defined but not used
warning: unused variable 'pm_state'
warning: assignment discards 'const' qualifier from pointer target type
warning: assignment to 'pm_metric_t *' {aka 'struct pm_metric_s *'} from 'int' makes pointer from integer without a cast

@gSahitya-samsung gSahitya-samsung changed the title os/pm: Resolve Build Warnings os/pm: resolve build warnings Oct 24, 2024
This commit resolve the below build warnings:

warning: 'pm_state_name' defined but not used
warning: 'wakeup_src_name' defined but not used
warning: unused variable 'pm_state'
warning: assignment discards 'const' qualifier from pointer target type
warning: assignment to 'pm_metric_t *' {aka 'struct pm_metric_s *'} from 'int' makes pointer from integer without a cast
@@ -148,6 +148,8 @@ static int power_stat(const char *relpath, FAR struct stat *buf);
#define POWER_LEVEL_3 3
#define POWER_LEVEL_4 4

static const char *pm_state_name[PM_COUNT] = {"PM_NORMAL", "PM_IDLE", "PM_STANDBY", "PM_SLEEP"};
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

will you remove duplicate?

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

Successfully merging this pull request may close these issues.

5 participants