aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRosen Penev <rosenp@gmail.com>2021-05-26 21:39:17 -0700
committerHans Verkuil <hverkuil-cisco@xs4all.nl>2021-05-27 08:07:27 +0200
commit72a981cc770b7d1327e872de4cdd6083f236e622 (patch)
treeedc582b5a7debbe71c8d56c962b8866d2f387558
parent9438348faaf848f011470760d5a07dcb5e762720 (diff)
v4l-utils: add missing static
Found by -Wmissing-prototypes Signed-off-by: Rosen Penev <rosenp@gmail.com> Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
-rw-r--r--utils/cec-compliance/cec-compliance.cpp2
-rw-r--r--utils/cec-ctl/cec-ctl.cpp2
-rw-r--r--utils/cec-follower/cec-follower.cpp2
-rwxr-xr-xutils/libcecutil/cec-gen.pl2
-rw-r--r--utils/v4l2-compliance/v4l2-test-buffers.cpp2
-rw-r--r--utils/v4l2-ctl/v4l2-ctl-meta.cpp2
6 files changed, 6 insertions, 6 deletions
diff --git a/utils/cec-compliance/cec-compliance.cpp b/utils/cec-compliance/cec-compliance.cpp
index b292e541..84038d09 100644
--- a/utils/cec-compliance/cec-compliance.cpp
+++ b/utils/cec-compliance/cec-compliance.cpp
@@ -336,7 +336,7 @@ static std::string audio_format_code2s(__u8 format_code)
}
}
-std::string extension_type_code2s(__u8 type_code)
+static std::string extension_type_code2s(__u8 type_code)
{
switch (type_code) {
case 0:
diff --git a/utils/cec-ctl/cec-ctl.cpp b/utils/cec-ctl/cec-ctl.cpp
index 79e707c7..8e08a577 100644
--- a/utils/cec-ctl/cec-ctl.cpp
+++ b/utils/cec-ctl/cec-ctl.cpp
@@ -409,7 +409,7 @@ static __u64 current_ts()
return ts.tv_sec * 1000000000ULL + ts.tv_nsec;
}
-int cec_named_ioctl(int fd, const char *name,
+static int cec_named_ioctl(int fd, const char *name,
unsigned long int request, void *parm)
{
int retval = ioctl(fd, request, parm);
diff --git a/utils/cec-follower/cec-follower.cpp b/utils/cec-follower/cec-follower.cpp
index 184cf16a..b7a41ac2 100644
--- a/utils/cec-follower/cec-follower.cpp
+++ b/utils/cec-follower/cec-follower.cpp
@@ -197,7 +197,7 @@ static std::string audio_format_code2s(__u8 format_code)
}
}
-std::string extension_type_code2s(__u8 type_code)
+static std::string extension_type_code2s(__u8 type_code)
{
switch (type_code) {
case 0:
diff --git a/utils/libcecutil/cec-gen.pl b/utils/libcecutil/cec-gen.pl
index 224d0ba2..726e74b3 100755
--- a/utils/libcecutil/cec-gen.pl
+++ b/utils/libcecutil/cec-gen.pl
@@ -503,7 +503,7 @@ status:
printf("\t%s\n", cec_status2s(*msg).c_str());
}
-void log_htng_msg(const struct cec_msg *msg)
+static void log_htng_msg(const struct cec_msg *msg)
{
if ((msg->tx_status && !(msg->tx_status & CEC_TX_STATUS_OK)) ||
(msg->rx_status && !(msg->rx_status & (CEC_RX_STATUS_OK | CEC_RX_STATUS_FEATURE_ABORT))))
diff --git a/utils/v4l2-compliance/v4l2-test-buffers.cpp b/utils/v4l2-compliance/v4l2-test-buffers.cpp
index e515fea4..f52fa00d 100644
--- a/utils/v4l2-compliance/v4l2-test-buffers.cpp
+++ b/utils/v4l2-compliance/v4l2-test-buffers.cpp
@@ -39,7 +39,7 @@ static bool stream_use_hdr;
static unsigned max_bytesused[VIDEO_MAX_PLANES];
static unsigned min_data_offset[VIDEO_MAX_PLANES];
-bool operator<(struct timeval const& n1, struct timeval const& n2)
+static bool operator<(struct timeval const& n1, struct timeval const& n2)
{
return n1.tv_sec < n2.tv_sec ||
(n1.tv_sec == n2.tv_sec && n1.tv_usec < n2.tv_usec);
diff --git a/utils/v4l2-ctl/v4l2-ctl-meta.cpp b/utils/v4l2-ctl/v4l2-ctl-meta.cpp
index 33c6db46..1e4117cb 100644
--- a/utils/v4l2-ctl/v4l2-ctl-meta.cpp
+++ b/utils/v4l2-ctl/v4l2-ctl-meta.cpp
@@ -102,7 +102,7 @@ void meta_set(cv4l_fd &_fd)
options[OptTryMetaOutFormat], V4L2_BUF_TYPE_META_OUTPUT);
}
-void __meta_get(cv4l_fd &fd, __u32 type)
+static void __meta_get(cv4l_fd &fd, __u32 type)
{
vfmt.type = type;
if (doioctl(fd.g_fd(), VIDIOC_G_FMT, &vfmt) == 0)

Privacy Policy