Skip to content

Add -Wno-single-bit-bitfield-constant-conversion to cflags - #1

Open
robertkirkman wants to merge 1 commit into
android-generic:bpfrom
robertkirkman:bitfield-constant-conversion
Open

Add -Wno-single-bit-bitfield-constant-conversion to cflags#1
robertkirkman wants to merge 1 commit into
android-generic:bpfrom
robertkirkman:bitfield-constant-conversion

Conversation

@robertkirkman

Copy link
Copy Markdown

Works around this error:

external/alsa-lib/src/pcm/pcm.c:2692:22: error: implicit truncation from 'int' to a one-bit wide bit-field changes value from 1 to -1 [-Werror,-Wsingle-bit-bitfield-constant-conversion]
 2692 |                                         (*pcmp)->compat = 1;
      |                                                         ^ ~
external/alsa-lib/src/pcm/pcm.c:2697:21: error: implicit truncation from 'int' to a one-bit wide bit-field changes value from 1 to -1 [-Werror,-Wsingle-bit-bitfield-constant-conversion]
 2697 |                                 (*pcmp)->compat = 1;
      |                                                 ^ ~
2 errors generated.

Works around this error:

```
external/alsa-lib/src/pcm/pcm.c:2692:22: error: implicit truncation from 'int' to a one-bit wide bit-field changes value from 1 to -1 [-Werror,-Wsingle-bit-bitfield-constant-conversion]
 2692 |                                         (*pcmp)->compat = 1;
      |                                                         ^ ~
external/alsa-lib/src/pcm/pcm.c:2697:21: error: implicit truncation from 'int' to a one-bit wide bit-field changes value from 1 to -1 [-Werror,-Wsingle-bit-bitfield-constant-conversion]
 2697 |                                 (*pcmp)->compat = 1;
      |                                                 ^ ~
2 errors generated.
```
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.

1 participant