Skip to content

Commit

Permalink
Fix warnings in generates test code
Browse files Browse the repository at this point in the history
  • Loading branch information
SanderMertens committed Aug 16, 2023
1 parent 7ec7455 commit bed9155
Show file tree
Hide file tree
Showing 3 changed files with 88 additions and 88 deletions.
82 changes: 41 additions & 41 deletions drivers/amalgamate/include/bake-amalgamate/bake_config.h
Original file line number Diff line number Diff line change
@@ -1,41 +1,41 @@
/*
)
(.)
.|.
| |
_.--| |--._
.-'; ;`-'& ; `&.
\ & ; & &_/
|"""---...---"""|
\ | | | | | | | /
`---.|.|.|.---'
* This file is generated by bake.lang.c for your convenience. Headers of
* dependencies will automatically show up in this file. Include bake_config.h
* in your main project file. Do not edit! */

#ifndef BAKE_AMALGAMATE_BAKE_CONFIG_H
#define BAKE_AMALGAMATE_BAKE_CONFIG_H

/* Headers of public dependencies */
#ifdef __BAKE__
#include <bake_util.h>
#endif

/* Convenience macro for exporting symbols */
#ifndef bake_amalgamate_STATIC
#if defined(bake_amalgamate_EXPORTS) && (defined(_MSC_VER) || defined(__MINGW32__))
#define BAKE_AMALGAMATE_API __declspec(dllexport)
#elif defined(bake_amalgamate_EXPORTS)
#define BAKE_AMALGAMATE_API __attribute__((__visibility__("default")))
#elif defined(_MSC_VER)
#define BAKE_AMALGAMATE_API __declspec(dllimport)
#else
#define BAKE_AMALGAMATE_API
#endif
#else
#define BAKE_AMALGAMATE_API
#endif

#endif
/*
)
(.)
.|.
| |
_.--| |--._
.-'; ;`-'& ; `&.
\ & ; & &_/
|"""---...---"""|
\ | | | | | | | /
`---.|.|.|.---'
* This file is generated by bake.lang.c for your convenience. Headers of
* dependencies will automatically show up in this file. Include bake_config.h
* in your main project file. Do not edit! */

#ifndef BAKE_AMALGAMATE_BAKE_CONFIG_H
#define BAKE_AMALGAMATE_BAKE_CONFIG_H

/* Headers of public dependencies */
#ifdef __BAKE__
#include <bake_util.h>
#endif

/* Convenience macro for exporting symbols */
#ifndef bake_amalgamate_STATIC
#if defined(bake_amalgamate_EXPORTS) && (defined(_MSC_VER) || defined(__MINGW32__))
#define BAKE_AMALGAMATE_API __declspec(dllexport)
#elif defined(bake_amalgamate_EXPORTS)
#define BAKE_AMALGAMATE_API __attribute__((__visibility__("default")))
#elif defined(_MSC_VER)
#define BAKE_AMALGAMATE_API __declspec(dllimport)
#else
#define BAKE_AMALGAMATE_API
#endif
#else
#define BAKE_AMALGAMATE_API
#endif

#endif

92 changes: 46 additions & 46 deletions drivers/test/include/bake-test/bake_config.h
Original file line number Diff line number Diff line change
@@ -1,46 +1,46 @@
/*
)
(.)
.|.
| |
_.--| |--._
.-'; ;`-'& ; `&.
\ & ; & &_/
|"""---...---"""|
\ | | | | | | | /
`---.|.|.|.---'
* This file is generated by bake.lang.c for your convenience. Headers of
* dependencies will automatically show up in this file. Include bake_config.h
* in your main project file. Do not edit! */

#ifndef BAKE_TEST_BAKE_CONFIG_H
#define BAKE_TEST_BAKE_CONFIG_H

/* Headers of public dependencies */
/* No dependencies */

/* Headers of private dependencies */
#ifdef bake_test_EXPORTS
#ifdef __BAKE__
#include <bake_util.h>
#endif
#endif

/* Convenience macro for exporting symbols */
#ifndef bake_test_STATIC
#if defined(bake_test_EXPORTS) && (defined(_MSC_VER) || defined(__MINGW32__))
#define BAKE_TEST_API __declspec(dllexport)
#elif defined(bake_test_EXPORTS)
#define BAKE_TEST_API __attribute__((__visibility__("default")))
#elif defined(_MSC_VER)
#define BAKE_TEST_API __declspec(dllimport)
#else
#define BAKE_TEST_API
#endif
#else
#define BAKE_TEST_API
#endif

#endif
/*
)
(.)
.|.
| |
_.--| |--._
.-'; ;`-'& ; `&.
\ & ; & &_/
|"""---...---"""|
\ | | | | | | | /
`---.|.|.|.---'
* This file is generated by bake.lang.c for your convenience. Headers of
* dependencies will automatically show up in this file. Include bake_config.h
* in your main project file. Do not edit! */

#ifndef BAKE_TEST_BAKE_CONFIG_H
#define BAKE_TEST_BAKE_CONFIG_H

/* Headers of public dependencies */
/* No dependencies */

/* Headers of private dependencies */
#ifdef bake_test_EXPORTS
#ifdef __BAKE__
#include <bake_util.h>
#endif
#endif

/* Convenience macro for exporting symbols */
#ifndef bake_test_STATIC
#if defined(bake_test_EXPORTS) && (defined(_MSC_VER) || defined(__MINGW32__))
#define BAKE_TEST_API __declspec(dllexport)
#elif defined(bake_test_EXPORTS)
#define BAKE_TEST_API __attribute__((__visibility__("default")))
#elif defined(_MSC_VER)
#define BAKE_TEST_API __declspec(dllimport)
#else
#define BAKE_TEST_API
#endif
#else
#define BAKE_TEST_API
#endif

#endif

2 changes: 1 addition & 1 deletion drivers/test/src/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,7 @@ void generate_testcase(
cdiff_file_elemBegin(suite_file, "%s_%s", suite, testcase);

cdiff_file_headerBegin(suite_file);
cdiff_file_write(suite_file, "void %s_%s() {", suite, testcase);
cdiff_file_write(suite_file, "void %s_%s(void) {", suite, testcase);
cdiff_file_headerEnd(suite_file);

if (!cdiff_file_bodyBegin(suite_file)) {
Expand Down

0 comments on commit bed9155

Please sign in to comment.