Skip to content

[-Wignored-qualifiers] warning in tidy #866

Closed
@Girgias

Description

@Girgias

I am not exactly sure if it is bug in tidy5 itself or in how Ubuntu packages it. But adding some compiler warning into php/php-src#5151 two [-Wignored-qualifiers] came out from the tidy header:

In file included from /home/vsts/work/1/s/ext/tidy/tidy.c:30:0:
/usr/include/tidy/tidy.h:2095:13: warning: type qualifiers ignored on function return type [-Wignored-qualifiers]
 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]
 TIDY_EXPORT const ctmbstr TIDY_CALL TidyLangPosixName( const tidyLocaleMapItem *item );
             ^~~~~

The relevant C code within the Tidy extension is:

#if HAVE_TIDY_H
#include "tidy.h"
#elif HAVE_TIDYP_H
#include "tidyp.h"
#endif

And the Ubuntu package used is libtidy-dev.

This seems to be the same issue as reported in #746 which was closed last year, therefore it may also be that the Ubuntu package is out of date.

Best regards.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions