# SDL\_net: update for warning flags in watcom makefile.

**URL:** <https://discourse.libsdl.org/t/sdl-net-update-for-warning-flags-in-watcom-makefile/34221>\
**Category:** SDL Commits\
**Created:** [December 29, 2021, 9:04pm UTC](https://discourse.libsdl.org/t/sdl-net-update-for-warning-flags-in-watcom-makefile/34221 "2021-12-29T21:04:12Z")\
**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:** [December 29, 2021, 9:04pm UTC](https://discourse.libsdl.org/t/sdl-net-update-for-warning-flags-in-watcom-makefile/34221/1 "2021-12-29T21:04:12Z")

</div>

> <https://github.com/libsdl-org/SDL_net/commit/d9b646f3b8531f372f8e85ac1d60d79719a56ac7>

```diff
From d9b646f3b8531f372f8e85ac1d60d79719a56ac7 Mon Sep 17 00:00:00 2001
From: Ozkan Sezer <[EMAIL REDACTED]>
Date: Wed, 29 Dec 2021 23:55:24 +0300
Subject: [PATCH] update for warning flags in watcom makefile.

---
 Makefile.os2 | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/Makefile.os2 b/Makefile.os2
index d091893..5425975 100644
--- a/Makefile.os2
+++ b/Makefile.os2
@@ -26,6 +26,8 @@ LIBS = SDL2.lib
 CFLAGS = -bt=os2 -d0 -q -bm -5s -fp5 -fpi87 -sg -oteanbmier -ei -j
 # warnings:
 CFLAGS+= -wx
+# newer OpenWatcom versions enable W303 by default
+CFLAGS_BASE+= -wcd=303
 # to build a dll:
 CFLAGS+= -bd
 # for DECLSPEC:

```
