Skip to content

Commit 634e9a4

Browse files
committed
btrfs-progs: tests: fix build -Wmissing-prototypes warnings
Signed-off-by: David Sterba <[email protected]>
1 parent d8317a4 commit 634e9a4

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

tests/ioctl-test.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,7 @@ static struct btrfs_ioctl_dev_replace_args used_replace_args __attribute__((used
192192
static struct btrfs_ioctl_same_args used_same_args __attribute__((used));
193193
static struct btrfs_ioctl_feature_flags used_feature_flags __attribute__((used));
194194

195-
const char* value_to_string(unsigned long num)
195+
static const char* value_to_string(unsigned long num)
196196
{
197197
#define ONE(x) case x: return #x;
198198
switch (num) {

tests/string-table-test.c

+3-3
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
#include "common/utils.h"
2020
#include "common/string-table.h"
2121

22-
void test_simple_create_free()
22+
static void test_simple_create_free()
2323
{
2424
struct string_table *tab;
2525

@@ -38,7 +38,7 @@ void test_simple_create_free()
3838
table_free(tab);
3939
}
4040

41-
void test_simple_header()
41+
static void test_simple_header()
4242
{
4343
struct string_table *tab;
4444
int i;
@@ -68,7 +68,7 @@ void test_simple_header()
6868
table_free(tab);
6969
}
7070

71-
void test_simple_paginate()
71+
static void test_simple_paginate()
7272
{
7373
struct string_table *tab;
7474
unsigned int page_size = 4;

0 commit comments

Comments
 (0)