Skip to content

Conversation

@stronnag
Copy link
Collaborator

@stronnag stronnag commented Jun 3, 2023

gcc 13.1.1 reports a (mainly harmless) conflicting type:

/src/main/drivers/flash.c:221:19: warning: conflicting types for 'flashPartitionFindByType' due to enum/integer mismatch; have 'flashPartition_t *(uint8_t)' {aka 'struct flashPartition_s *(unsigned char)'} [-Wenum-int-mismatch]
  221 | flashPartition_t *flashPartitionFindByType(uint8_t type)
      |                   ^~~~~~~~~~~~~~~~~~~~~~~~
In file included from ./src/main/drivers/flash.c:31:
./src/main/drivers/flash.h:101:19: note: previous declaration of 'flashPartitionFindByType' with type 'flashPartition_t *(flashPartitionType_e)' {aka 'struct flashPartition_s *(flashPartitionType_e)'}
  101 | flashPartition_t *flashPartitionFindByType(flashPartitionType_e type);
      |  

So let's fix it ...

@stronnag stronnag merged commit 1b5c671 into master Jun 4, 2023
@stronnag stronnag deleted the jh_fix_flash_partition_type_mismatch branch June 4, 2023 06:27
mmosca pushed a commit that referenced this pull request Jun 15, 2023
sensei-hacker pushed a commit to sensei-hacker/inav_unofficial_targets that referenced this pull request Oct 4, 2023
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