Skip to content

Conversation

dankamongmen
Copy link
Contributor

This allows us to use -wwrite-strings over the repo. Otherwise we get:

/home/dank/esp/build/_deps/espidflib-src/components/max1704x/max1704x.c:101:20: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
  101 | static char *TAG = "max1704x";
      |                    ^~~~~~~~~~

@trombik
Copy link
Collaborator

trombik commented Oct 11, 2024

Do you think -wwrite-strings should be enabled by default?

@dankamongmen
Copy link
Contributor Author

Do you think -wwrite-strings should be enabled by default?

absolutely

@dankamongmen
Copy link
Contributor Author

but either way, this patch should be applied.

@dankamongmen
Copy link
Contributor Author

also, leaving this out means projects which include this project using the standard ESP-IDF CMake mechanism (like my project =]) can't use -wwrite-strings, which is annoying.

@trombik
Copy link
Collaborator

trombik commented Nov 2, 2024

@dankamongmen I am a co-maintainer of the repository and able to merge PRs. However, I always respect the repository owner's decision. So far, he has not commented. When he does, I will work on #663.

@dankamongmen
Copy link
Contributor Author

no worries, @trombik !

trombik added a commit to esp-idf-lib/max1704x that referenced this pull request Jul 30, 2025
@trombik
Copy link
Collaborator

trombik commented Jul 30, 2025

The issue was fixed by esp-idf-lib/max1704x#1

@trombik
Copy link
Collaborator

trombik commented Jul 30, 2025

@trombik trombik closed this Jul 30, 2025
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