# Endian errors

**URL:** <https://discourse.libsdl.org/t/endian-errors/1027>\
**Category:** SDL Development\
**Created:** [August 1, 1999, 11:15pm UTC](https://discourse.libsdl.org/t/endian-errors/1027 "1999-08-01T23:15:02Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Garrett](https://discourse.libsdl.org/letter_avatar_proxy/v4/letter/g/3e96dc/32.png) [@Garrett](https://discourse.libsdl.org/u/Garrett)\
**Post date:** [August 1, 1999, 11:15pm UTC](https://discourse.libsdl.org/t/endian-errors/1027/1 "1999-08-01T23:15:02Z")

</div>

When I use SDL\_SwapLE16() on an i386 machine the function generates a  
statement with no effect error on compile. Well I want to keep the function in  
for portability reasons but is there any way to get rid of this error?

-Garrett, WPI student majoring in Computer Science.

“He who joyfully marches in rank and file has already earned  
my contempt. He has been given a large brain by mistake, since  
for him the spinal cord would suffice.” -Albert Einstein

---

<div class="post-metadata">

**Author:** ![slouken](https://discourse.libsdl.org/letter_avatar_proxy/v4/letter/s/ec9cab/32.png) [@slouken](https://discourse.libsdl.org/u/slouken)\
**Post date:** [August 1, 1999, 11:23pm UTC](https://discourse.libsdl.org/t/endian-errors/1027/2 "1999-08-01T23:23:24Z")

</div>

> When I use SDL\_SwapLE16() on an i386 machine the function generates a  
> statement with no effect error on compile. Well I want to keep the function in  
> for portability reasons but is there any way to get rid of this error?

What exactly is the error?

```
-Sam Lantinga (slouken at devolution.com)

```

Lead Programmer, Loki Entertainment Software–  
“Any sufficiently advanced bug is indistinguishable from a feature”  
– Rich Kulawiec

---

<div class="post-metadata">

**Author:** ![Garrett](https://discourse.libsdl.org/letter_avatar_proxy/v4/letter/g/3e96dc/32.png) [@Garrett](https://discourse.libsdl.org/u/Garrett)\
**Post date:** [August 2, 1999, 12:31am UTC](https://discourse.libsdl.org/t/endian-errors/1027/3 "1999-08-02T00:31:31Z")

</div>

Well actually its a warning:

warning: statement with no effect

But I have warnings set to errors. And its just annoying to have a list of  
warnings popping up everytime I compile. Since its not going to do anything on  
my machine though I have it commented out for now.

-Garrett, WPI student majoring in Computer Science.

“He who joyfully marches in rank and file has already earned  
my contempt. He has been given a large brain by mistake, since  
for him the spinal cord would suffice.” -Albert EinsteinOn Sun, 01 Aug 1999, you wrote:

> > When I use SDL\_SwapLE16() on an i386 machine the function generates a  
> > statement with no effect error on compile. Well I want to keep the function in  
> > for portability reasons but is there any way to get rid of this error?
> 
> What exactly is the error?
