enabled and fixed -Wmissing-prototypes compiler warnings
Co-authored-by: matt335672 <30179339+matt335672@users.noreply.github.com>
This commit is contained in:
@@ -147,10 +147,6 @@ START_TEST(test_list__simple_strdup_multi)
|
||||
}
|
||||
END_TEST
|
||||
|
||||
int
|
||||
split_string_append_fragment(const char **start, const char *end,
|
||||
struct list *list);
|
||||
|
||||
START_TEST(test_list__append_fragment)
|
||||
{
|
||||
struct list *l = list_create();
|
||||
|
||||
@@ -11,7 +11,7 @@ struct xrdp_sec *sec_layer;
|
||||
struct xrdp_rdp *rdp_layer;
|
||||
struct xrdp_session *session;
|
||||
|
||||
void setup(void)
|
||||
static void setup(void)
|
||||
{
|
||||
rdp_layer = (struct xrdp_rdp *)g_malloc(sizeof(struct xrdp_rdp), 1);
|
||||
session = (struct xrdp_session *)g_malloc(sizeof(struct xrdp_session), 1);
|
||||
@@ -22,7 +22,7 @@ void setup(void)
|
||||
sec_layer->rdp_layer = rdp_layer;
|
||||
}
|
||||
|
||||
void teardown(void)
|
||||
static void teardown(void)
|
||||
{
|
||||
g_free(sec_layer);
|
||||
g_free(session);
|
||||
|
||||
@@ -7,6 +7,7 @@
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
|
||||
#include "libmem.h"
|
||||
#include "log.h"
|
||||
|
||||
#define ALIGN_BY 32
|
||||
|
||||
@@ -48,11 +48,11 @@ static int WHITE = COLOR24RGB(255, 255, 255);
|
||||
/* Time to allow some large bitmap test suites to run on slower platforms */
|
||||
#define LARGE_BM_TEST_SUITE_TIMEOUT 10
|
||||
|
||||
void setup(void)
|
||||
static void setup(void)
|
||||
{
|
||||
}
|
||||
|
||||
void teardown(void)
|
||||
static void teardown(void)
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
@@ -61,7 +61,7 @@ static pixman_box16_t test_box =
|
||||
0, 0, 100, 100
|
||||
};
|
||||
|
||||
pixman_box16_t *__wrap_pixman_region_extents(pixman_region16_t *region)
|
||||
static pixman_box16_t *__wrap_pixman_region_extents(pixman_region16_t *region)
|
||||
{
|
||||
check_expected_ptr(region);
|
||||
return mock_ptr_type(pixman_box16_t *);
|
||||
@@ -107,7 +107,7 @@ static void test_xrdp_region_get_bounds__happy_path(void **state)
|
||||
g_free(rect);
|
||||
}
|
||||
|
||||
pixman_bool_t __wrap_pixman_region_not_empty(pixman_region16_t *region)
|
||||
static pixman_bool_t __wrap_pixman_region_not_empty(pixman_region16_t *region)
|
||||
{
|
||||
check_expected_ptr(region);
|
||||
return mock_type(pixman_bool_t);
|
||||
|
||||
Reference in New Issue
Block a user