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

fix warnings #7

Merged
merged 1 commit into from
Jun 16, 2021
Merged

fix warnings #7

merged 1 commit into from
Jun 16, 2021

Conversation

hathach
Copy link
Member

@hathach hathach commented May 26, 2021

warning: taking address of packed member of 'directoryEntry' may result
in an unaligned pointer value [-Waddress-of-packed-member]

warning: taking address of packed member of 'directoryEntry' may result
in an unaligned pointer value [-Waddress-of-packed-member]
@hathach hathach requested a review from ladyada May 26, 2021 02:49
@ladyada
Copy link
Member

ladyada commented May 26, 2021

do you want to switch this over to Actions instead of Travis? the upstream has ceased development and will not take PRs so it's ok if we diverge

@hathach
Copy link
Member Author

hathach commented May 26, 2021

@ladyada yeah, we can switch to action, upstream actually switch to use version 2
https://github.com/greiman/SdFat/commits/master
which is rather active recently. At the time we are porting it is in the migration between v1 to v2. Maybe later on we could try to see if it is possible get some of our fix (e.g FAT12 with 2 FAT tables ) and other fixes, spidma merged to upstream. Anyway, I will add action as separate PR in the meanwhile

@ladyada
Copy link
Member

ladyada commented May 26, 2021

yes at the time we last looked, v2 was not ready for use

@hathach
Copy link
Member Author

hathach commented May 26, 2021

yes at the time we last looked, v2 was not ready for use

Ok, will definitely add action and then keep an eye on it later. There is no point to got merge to v1 at the moment though.

@brentru
Copy link
Member

brentru commented Jun 16, 2021

@hathach Hi - what's the status of this PR? I'm building another library that depends on SdFat and is raising warnings while compiling this lib.

I'm compiling with xtensa-esp32s2 if it helps.

@ladyada ladyada merged commit 54ca0c7 into master Jun 16, 2021
@ladyada
Copy link
Member

ladyada commented Jun 16, 2021

this should still get actions but merging since brent want to use!

@hathach
Copy link
Member Author

hathach commented Jun 17, 2021

ah right, sorry, I totally forgot about this. will submit an separate PR for ci.

@brentru
Copy link
Member

brentru commented Jun 21, 2021

@hathach There's no place for issues on this repo.. I'm still getting a lot of warnings when compiling this library with xtensa-esp32s2-elf-gcc for the funhouse platform.

Here's the output resulting from arduino-cli using the ReadWrite example for this library: https://gist.github.com/brentru/25fd2051c17c5e328c2d36a47b4ce248

@hathach
Copy link
Member Author

hathach commented Jun 22, 2021

@brentru it is due to arduino-esp core also defined symbol for those fileop such as O_RDONLY, O_WRONLY etc ... which is also defined by SdFat. I am not sure what is the best fix for this. Maybe we could wrap around those define in this SdFat with #ifndef

@brentru
Copy link
Member

brentru commented Jun 22, 2021

That sounds like it'd work, esp. if it's mostly redefined symbols. For now, I'm going to add a .funhouse.skip file into the workflow which is stalling due to these warnings.

Let me know when it's fixed and I'll try re-running the workflow.

brentru pushed a commit to adafruit/Adafruit_Wippersnapper_Arduino that referenced this pull request Jun 22, 2021
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.

3 participants