[X] I have updated my IDF branch (master or release) to the latest version and checked that the issue is present there.
[X] I have searched the issue tracker for a similar issue and not found a similar issue.
General issue report
We are using https://github.com/espressif/esp-idf/tree/release/v5.1 and branch 5.1.2. While building our code we are getting error in the file \esp-idf\components\hal\esp32\include\hal\spi_flash_ll.h line no 319 to 323 and 245 to 270. We are not directly calling any function from this file. Still we are getting below errors for this file. Previously we are using esp-idf 4.3. In that also for this file content was same. There we are not getting error. But after migration now we are getting error.
Also if we change the code in that file highlighted in the yellow color in right side, then build is successful.
Is there any option need to select to resolve this issue?
Please refer the below comment screenshots for error.
In comparison image left side is original content and right side yellow highlight is working code due to modifications.
Answers checklist.
General issue report
We are using https://github.com/espressif/esp-idf/tree/release/v5.1 and branch 5.1.2. While building our code we are getting error in the file \esp-idf\components\hal\esp32\include\hal\spi_flash_ll.h line no 319 to 323 and 245 to 270. We are not directly calling any function from this file. Still we are getting below errors for this file. Previously we are using esp-idf 4.3. In that also for this file content was same. There we are not getting error. But after migration now we are getting error. Also if we change the code in that file highlighted in the yellow color in right side, then build is successful.
Is there any option need to select to resolve this issue? Please refer the below comment screenshots for error. In comparison image left side is original content and right side yellow highlight is working code due to modifications.