Skip to content
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

fix build error with clang16 #124

Merged
merged 1 commit into from
Jun 13, 2023
Merged

Conversation

listout
Copy link
Contributor

@listout listout commented May 31, 2023

With clang 16 I'm mainly getting these two errors and a warning:

  1. src/olsrd_filtergw.c:186:7: error: call to undeclared function 'should_filter'; ISO C99 and
    later do not support implicit function declarations [-Wimplicit-function-declaration]
    if(!should_filter(&originator))

  2. src/olsrd_filtergw.c:259:3: error: call to undeclared function 'olsr_parser_add_function';
    ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
    olsr_parser_add_function(&olsrd_filtergw_parser, HNA_MESSAGE);

  3. src/olsrd_filtergw.c:273:26: warning: incompatible pointer types initializing
    'struct filter_group *' with an expression of type 'struct hna_group ' [-Wincompatible-pointer-types]
    struct filter_group
    next = filter_groups->next;

This commit fixes all three of them.

@PolynomialDivision
Copy link
Collaborator

Can you please cite the actual build error message in the commit message?

@listout
Copy link
Contributor Author

listout commented May 31, 2023

Can you please cite the actual build error message in the commit message?

Sure

With clang 16 I'm mainly getting these two errors and a warning:

1. src/olsrd_filtergw.c:186:7: error: call to undeclared function 'should_filter'; ISO C99 and
      later do not support implicit function declarations [-Wimplicit-function-declaration]
  if(!should_filter(&originator))

2. src/olsrd_filtergw.c:259:3: error: call to undeclared function 'olsr_parser_add_function';
      ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
  olsr_parser_add_function(&olsrd_filtergw_parser, HNA_MESSAGE);

3. src/olsrd_filtergw.c:273:26: warning: incompatible pointer types initializing
      'struct filter_group *' with an expression of type 'struct hna_group *' [-Wincompatible-pointer-types]
    struct filter_group* next = filter_groups->next;

This commit fixes all three of them.

Signed-off-by: Brahmajit Das <brahmajit.xyz@gmail.com>
@listout
Copy link
Contributor Author

listout commented Jun 13, 2023

Can you please cite the actual build error message in the commit message?

ping

@PolynomialDivision PolynomialDivision merged commit 42c81ca into OLSR:master Jun 13, 2023
1 check failed
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.

None yet

2 participants