PiRSquared17 / libkml

Automatically exported from code.google.com/p/libkml
Other
0 stars 0 forks source link

Mac Ports install error on 10.7.2 #175

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. sudo port install libkml
2.
3.

What is the expected output? What do you see instead?
The full log file is attached.
I get the error:
:info:build libtool: compile:  /Developer/usr/bin/clang++ -DHAVE_CONFIG_H -I. 
-I../../.. -I../../../src -I../../../third_party/boost_1_34_1 
-I../../../third_party/googletest-r108/include -I/opt/local/include -Wall 
-Wextra -Wno-unused-parameter -Werror -ansi -pedantic -fno-rtti -pipe -O2 -arch 
x86_64 -MT google_maps_data.lo -MD -MP -MF .deps/google_maps_data.Tpo -c 
google_maps_data.cc  -fno-common -DPIC -o .libs/google_maps_data.o
:info:build google_maps_data.cc:183:22: error: using the result of an 
assignment as a condition without parentheses [-Werror,-Wparentheses]
:info:build   } while (this_feed = AtomUtil::GetNextFeed(this_feed, 
*http_client_));
:info:build            
~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
:info:build google_maps_data.cc:183:22: note: place parentheses around the 
assignment to silence this warning
:info:build   } while (this_feed = AtomUtil::GetNextFeed(this_feed, 
*http_client_));
:info:build                      ^
:info:build            (                                                        
  )
:info:build google_maps_data.cc:183:22: note: use '==' to turn this assignment 
into an equality comparison
:info:build   } while (this_feed = AtomUtil::GetNextFeed(this_feed, 
*http_client_));
:info:build                      ^
:info:build                      ==
:info:build 1 error generated.

What version of the product are you using? On what operating system?
Trying to install libkml through mac ports on OS X 10.7.2.

Did you run the unit test suite that comes with the project? Did all tests pass?
No

Please provide any additional information below.
This is the old "you have to use additional parentheses to avoid the 
assignment-when-you-mean-comparison mistake".

Original issue reported on code.google.com by patricia...@gmail.com on 31 Jan 2012 at 6:13

Attachments:

GoogleCodeExporter commented 9 years ago
Already fixed in trunk.

Original comment by fwarmerdam@gmail.com on 30 Jan 2013 at 11:16