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

[-Wint-conversion] warning always occurs. #72

Open
mkparkqq opened this issue Apr 17, 2024 · 0 comments
Open

[-Wint-conversion] warning always occurs. #72

mkparkqq opened this issue Apr 17, 2024 · 0 comments

Comments

@mkparkqq
Copy link

I am new beginner for this framework.
I found some annoying warning message during my tutorial.

How to reproduce

// test.c
#include <exotic/cester.h>
 
CESTER_TEST(test_one, inst,
    cester_assert_nothing();    
)
$ gcc -I./ test.c -o test.out
In file included from test.c:1:
./exotic/cester.h:481:5: warning: initialization of ‘int’ from ‘void *’ makes integer from pointer without a cast [-Wint-conversion]
  481 |     CESTER_NULL,                                     /* output_stream_address */
      |     ^~~~~~~~~~~
./exotic/cester.h:481:5: note: (near initialization for ‘superTestInstance.output_stream_address._flags’)

my environment

$ uname -a
Linux foo 6.5.0-27-generic #28~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Fri Mar 15 10:51:06 UTC 2 x86_64 x86_64 x86_64 GNU/Linux

temporary solution

I managed to prevent the warning message from appearing by using -Wno-int-conversion option.

Please help newbie. Thanks :)

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

No branches or pull requests

1 participant