Skip to content

Windows build with clang-cl doesn't pass #1259

@LeonarddeR

Description

@LeonarddeR
..\liblouis\lou_translateString.c(1612,30): error: incompatible pointer to integer conversion passing
      'const TranslationTableOffset *' (aka 'const unsigned int *') to parameter of type 'TranslationTableOffset'
      (aka 'unsigned int') [-Wint-conversion]
        if (brailleIndicatorDefined(indicator1, table, &indicatorRule1) &&
                                    ^~~~~~~~~~
..\liblouis\lou_translateString.c(1595,48): note: passing argument to parameter 'offset' here
brailleIndicatorDefined(TranslationTableOffset offset,
                                               ^
..\liblouis\lou_translateString.c(1613,28): error: incompatible pointer to integer conversion passing
      'const TranslationTableOffset *' (aka 'const unsigned int *') to parameter of type 'TranslationTableOffset'
      (aka 'unsigned int') [-Wint-conversion]
                        brailleIndicatorDefined(indicator2, table, &indicatorRule2) &&
                                                ^~~~~~~~~~
..\liblouis\lou_translateString.c(1595,48): note: passing argument to parameter 'offset' here
brailleIndicatorDefined(TranslationTableOffset offset,
                                               ^
..\liblouis\lou_translateString.c(3553,25): error: incompatible integer to pointer conversion passing
      'const TranslationTableOffset' (aka 'const unsigned int') to parameter of type 'const TranslationTableOffset *'
      (aka 'const unsigned int *'); take the address with & [-Wint-conversion]
                        if (isIndicatorEqual(table->noContractSign, table->noNumberSign, table))
                                             ^~~~~~~~~~~~~~~~~~~~~
                                             &
..\liblouis\lou_translateString.c(1607,48): note: passing argument to parameter 'indicator1' here
isIndicatorEqual(const TranslationTableOffset *indicator1,
                                               ^
..\liblouis\lou_translateString.c(3553,48): error: incompatible integer to pointer conversion passing
      'const TranslationTableOffset' (aka 'const unsigned int') to parameter of type 'const TranslationTableOffset *'
      (aka 'const unsigned int *'); take the address with & [-Wint-conversion]
                        if (isIndicatorEqual(table->noContractSign, table->noNumberSign, table))
                                                                    ^~~~~~~~~~~~~~~~~~~
                                                                    &
..\liblouis\lou_translateString.c(1608,33): note: passing argument to parameter 'indicator2' here
                const TranslationTableOffset *indicator2, const TranslationTableHeader *table) {
                                              ^
4 errors generated.

Note that this is Visual Studio 2022 preview with Clang 15.0.1

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugBug in the code (not in a table)

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions