Skip to content

Fix compiler warning#3

Open
AdityaGarg8 wants to merge 1 commit intot2linux:mbp15from
AdityaGarg8:mbp16
Open

Fix compiler warning#3
AdityaGarg8 wants to merge 1 commit intot2linux:mbp15from
AdityaGarg8:mbp16

Conversation

@AdityaGarg8
Copy link
Copy Markdown
Member

In 5.14 and above, the iio_dev->id has been removed, which probably represented an int argument %d.

The error was :- warning: format ‘%d’ expects a matching ‘int’ argument [-Wformat=]

In 5.14 and above, the iio_dev->id has been removed, which probably represented an int argument %d.

The error was :- `warning: format ‘%d’ expects a matching ‘int’ argument [-Wformat=]`
@AdityaGarg8
Copy link
Copy Markdown
Member Author

Tested this on 5.14.11. The ALS is still working well and the compiler does not show any warning now.

@AdityaGarg8 AdityaGarg8 deleted the mbp16 branch October 13, 2021 07:05
@AdityaGarg8 AdityaGarg8 restored the mbp16 branch October 13, 2021 07:05
@AdityaGarg8 AdityaGarg8 reopened this Oct 13, 2021
@solarkennedy
Copy link
Copy Markdown

Yes please!

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.

2 participants