Skip to content

Incompatible pointer types conversions #198

Description

@IssacLam

Hi all,

I am currently working on the verification of Amazon's s2n. I found some warning messages about "incompatible pointer types", but the pointer should be the same. Is it an error or some problem with my test harness?

Attached please find my test harness for s2n_timer: s2n_timer_harness.txt

Type-checking s2n_timer_harness
file ./s2n-harness/unit/s2n_timer_harness.c line 44 function main: warning: conversion from struct s2n_config * to struct s2n_config *: incompatible pointer types
file ./s2n-harness/unit/s2n_timer_harness.c line 50 function main: warning: conversion from struct s2n_config * to struct s2n_config *: incompatible pointer types
file ./s2n-harness/unit/s2n_timer_harness.c line 57 function main: warning: conversion from struct s2n_config * to struct s2n_config *: incompatible pointer types
warning: pointer parameter types differ between declaration and definition "s2n_timer_start"
old definition in module s2n_timer file ./s2n/utils/s2n_timer.c line 21
signed int (struct s2n_config *config, struct s2n_timer *timer)
new definition in module s2n_timer_harness file ./s2n/utils/s2n_timer.h line 24
signed int (struct s2n_config *, struct s2n_timer *)
warning: pointer parameter types differ between declaration and definition "s2n_timer_elapsed"
old definition in module s2n_timer file ./s2n/utils/s2n_timer.c line 28
signed int (struct s2n_config *config, struct s2n_timer *timer, unsigned long long int *nanoseconds)
new definition in module s2n_timer_harness file ./s2n/utils/s2n_timer.h line 25
signed int (struct s2n_config *, struct s2n_timer *, unsigned long long int *)
warning: pointer parameter types differ between declaration and definition "s2n_timer_reset"
old definition in module s2n_timer file ./s2n/utils/s2n_timer.c line 39
signed int (struct s2n_config *config, struct s2n_timer *timer, unsigned long long int *nanoseconds)
new definition in module s2n_timer_harness file ./s2n/utils/s2n_timer.h line 26
signed int (struct s2n_config *, struct s2n_timer *, unsigned long long int *)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions