RevoGirl/RevoBoot — Issue #24: 10.7.3 compilation error: assignment as a condition without parentheses
Author: brycv
Created: 2012-03-05 20:25:59+00:00
State: open

Below is the result of my attempt to compile RevoBoot. I used RevoBuilder for this process but then tried to compile manually with the same result. It appears to be an easy fix but I'm not entirely sure what the unintended consequences might be so I though I would submit an issue instead.

```
================= make all for libsa =================
/bin/mkdir -p /Users/username/Downloads/blackosx-RevoBuilder-4fb09e3/RevoBoot_SourceCode/RevoBoot-1.0.22/obj/i386/libsa
cc -Os -Oz -arch i386 -g -Wmost -Werror -fno-builtin -static -mpreferred-stack-boundary=2 -fno-align-functions -fno-stack-protector -march=pentium4 -msse2 -mfpmath=sse -msoft-float -c -I. -I/Users/username/Downloads/blackosx-RevoBuilder-4fb09e3/RevoBoot_SourceCode/RevoBoot-1.0.22/sym/i386 -I../util -I../libsaio prf.c -o /Users/username/Downloads/blackosx-RevoBuilder-4fb09e3/RevoBoot_SourceCode/RevoBoot-1.0.22/obj/i386/libsa/prf.o \
-MD -dependency-file /Users/username/Downloads/blackosx-RevoBuilder-4fb09e3/RevoBoot_SourceCode/RevoBoot-1.0.22/obj/i386/libsa/prf.d
clang: warning: argument unused during compilation: '-mpreferred-stack-boundary=2'
clang: warning: argument unused during compilation: '-fno-align-functions'
clang: warning: argument unused during compilation: '-mfpmath=sse'
prf.c:148:12: error: using the result of an assignment as a condition without
parentheses [-Werror,-Wparentheses]
while (c = *s++) {
~~^~~~~~
prf.c:148:12: note: place parentheses around the assignment to silence this
warning
while (c = *s++) {
^
( )
prf.c:148:12: note: use '==' to turn this assignment into an equality comparison
while (c = *s++) {
^
==
1 error generated.
make[2]: *** [prf.o] Error 1
make[1]: *** [all] Error 2
make: *** [all] Error 2

Compilation of RevoBoot for LION Failed.

Press any key to return to the main menu
```