diff options
author | lloyd <[email protected]> | 2011-03-01 13:52:46 +0000 |
---|---|---|
committer | lloyd <[email protected]> | 2011-03-01 13:52:46 +0000 |
commit | 39024858da467fd34a4d095ad1770b4c74db02ea (patch) | |
tree | 2d4ee4ca8b2ac36e9f97e2a7a84ef18470598554 | |
parent | c994122b8b42a42a6f7709e4d7755036604990ce (diff) |
Fix variable mask warning in Sun C++.
Make comment clearer on how to enable stlport4 in Sun C++
-rw-r--r-- | src/build-data/cc/sunstudio.txt | 4 | ||||
-rw-r--r-- | src/cert/x509cert/x509cert.cpp | 8 |
2 files changed, 7 insertions, 5 deletions
diff --git a/src/build-data/cc/sunstudio.txt b/src/build-data/cc/sunstudio.txt index 91a6ace65..d0b25d144 100644 --- a/src/build-data/cc/sunstudio.txt +++ b/src/build-data/cc/sunstudio.txt @@ -45,7 +45,9 @@ sparc64 -> "-xchip=SUBMODEL" sparc64- </mach_opt> <mach_abi_linking> -# On Linux, may need -library=stlport4 +# Needed on some Linux distros +#linux -> "-library=stlport4" + sparc64 -> "-xarch=v9" amd64 -> "-m64" </mach_abi_linking> diff --git a/src/cert/x509cert/x509cert.cpp b/src/cert/x509cert/x509cert.cpp index 38775271e..7b1d97def 100644 --- a/src/cert/x509cert/x509cert.cpp +++ b/src/cert/x509cert/x509cert.cpp @@ -329,8 +329,8 @@ std::string X509_Certificate::to_string() const continue; out << "Subject " << dn_fields[i] << ":"; - for(size_t i = 0; i != vals.size(); ++i) - out << " " << vals[i]; + for(size_t j = 0; j != vals.size(); ++j) + out << " " << vals[j]; out << "\n"; } @@ -342,8 +342,8 @@ std::string X509_Certificate::to_string() const continue; out << "Issuer " << dn_fields[i] << ":"; - for(size_t i = 0; i != vals.size(); ++i) - out << " " << vals[i]; + for(size_t j = 0; j != vals.size(); ++j) + out << " " << vals[j]; out << "\n"; } |