# aom: tools/obu\_parser.cc: make some functions static

**URL:** <https://discourse.libsdl.org/t/aom-tools-obu-parser-cc-make-some-functions-static/51681>\
**Category:** SDL Commits\
**Created:** [June 3, 2024, 4:32am UTC](https://discourse.libsdl.org/t/aom-tools-obu-parser-cc-make-some-functions-static/51681 "2024-06-03T04:32:38Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![SDLPushPostBot](https://discourse.libsdl.org/user_avatar/discourse.libsdl.org/sdlpushpostbot/32/4370_2.png) [@SDLPushPostBot](https://discourse.libsdl.org/u/SDLPushPostBot)\
**Post date:** [June 3, 2024, 4:32am UTC](https://discourse.libsdl.org/t/aom-tools-obu-parser-cc-make-some-functions-static/51681/1 "2024-06-03T04:32:38Z")

</div>

> <https://github.com/libsdl-org/aom/commit/03eb247ac4646ed720dc999544dfb86d9001e68c>
>
> Fixes some -Wmissing-prototypes warnings.
> 
> Bug: aomedia:3416
> Change-Id: Ia0f3b9c…f38598b785c692f0a0c8c97cd2df71c0c

```diff
From 03eb247ac4646ed720dc999544dfb86d9001e68c Mon Sep 17 00:00:00 2001
From: James Zern <[EMAIL REDACTED]>
Date: Tue, 28 May 2024 16:59:47 -0700
Subject: [PATCH] tools/obu_parser.cc: make some functions static

Fixes some -Wmissing-prototypes warnings.

Bug: aomedia:3416
Change-Id: Ia0f3b9cf38598b785c692f0a0c8c97cd2df71c0c
---
 tools/obu_parser.cc | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/tools/obu_parser.cc b/tools/obu_parser.cc
index 5716b46218..4053615f11 100644
--- a/tools/obu_parser.cc
+++ b/tools/obu_parser.cc
@@ -20,6 +20,7 @@
 #include "tools/obu_parser.h"
 
 namespace aom_tools {
+namespace {
 
 // Basic OBU syntax
 // 8 bits: Header
@@ -116,6 +117,8 @@ void PrintObuHeader(const ObuHeader *header) {
   }
 }
 
+} // namespace
+
 bool DumpObu(const uint8_t *data, int length, int *obu_overhead_bytes) {
   const int kObuHeaderSizeBytes = 1;
   const int kMinimumBytesRequired = 1 + kObuHeaderSizeBytes;

```
