Skip to content

Autotools: Simplify adding tidy cflags #15577

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

Merged
merged 2 commits into from
Aug 25, 2024
Merged

Conversation

petk
Copy link
Member

@petk petk commented Aug 24, 2024

No description provided.

@@ -58,8 +58,10 @@ if test "$PHP_TIDY" != "no"; then
PHP_ADD_INCLUDE([$TIDY_INCDIR])

dnl Add -Wno-ignored-qualifiers as this is an issue upstream
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this still a problem upstream? Unfortunately 1393834 that added this doesn't seem to reference anything...

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, still happening with tidy-html5 versions before 5.7.20:

/usr/include/tidy/tidy.h:2095:13: warning: type qualifiers ignored on function return type [-Wignored-qualifiers]
 2095 | TIDY_EXPORT const ctmbstr TIDY_CALL TidyLangWindowsName( const tidyLocaleMapItem *item );
      |             ^~~~~
/usr/include/tidy/tidy.h:2101:13: warning: type qualifiers ignored on function return type [-Wignored-qualifiers]
 2101 | TIDY_EXPORT const ctmbstr TIDY_CALL TidyLangPosixName( const tidyLocaleMapItem *item );
      |             ^~~~~

htacg/tidy-html5#866

@petk
Copy link
Member Author

petk commented Aug 25, 2024

Merging this soon. Looks ok and to simplify possible TIDY_CFLAGS variable usage in the future from the pkg-config.

@petk petk merged commit f88e32d into php:master Aug 25, 2024
2 checks passed
@petk petk deleted the patch-tidy-cflags branch August 25, 2024 15:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants