[PATCH] v4l-utils: add missing static

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Found by -Wmissing-prototypes

Signed-off-by: Rosen Penev <rosenp@xxxxxxxxx>
---
 utils/cec-compliance/cec-compliance.cpp     | 2 +-
 utils/cec-ctl/cec-ctl.cpp                   | 2 +-
 utils/cec-follower/cec-follower.cpp         | 2 +-
 utils/libcecutil/cec-gen.pl                 | 2 +-
 utils/v4l2-compliance/v4l2-test-buffers.cpp | 2 +-
 utils/v4l2-ctl/v4l2-ctl-meta.cpp            | 2 +-
 6 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/utils/cec-compliance/cec-compliance.cpp b/utils/cec-compliance/cec-compliance.cpp
index b292e541e..84038d096 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 8abb84d64..1a9611670 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 10a9552de..2ecad0923 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 224d0ba22..726e74b30 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 ca973c601..9d542957f 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 std::array<unsigned int, VIDEO_MAX_PLANES> max_bytesused;
 static std::array<unsigned int, VIDEO_MAX_PLANES> min_data_offset;
 
-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 e1b149117..7c6946243 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(const cv4l_fd &fd, __u32 type)
+static void __meta_get(const cv4l_fd &fd, __u32 type)
 {
 	vfmt.type = type;
 	if (doioctl(fd.g_fd(), VIDIOC_G_FMT, &vfmt) == 0)
-- 
2.31.1




[Index of Archives]     [Linux Input]     [Video for Linux]     [Gstreamer Embedded]     [Mplayer Users]     [Linux USB Devel]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Yosemite Backpacking]

  Powered by Linux