);
GCC_OPTIMIZATION_LEVEL = 3;
GCC_WARN_ABOUT_MISSING_NEWLINE = YES;
+ GCC_WARN_ABOUT_MISSING_PROTOTYPES = YES;
GCC_WARN_ABOUT_RETURN_TYPE = YES;
GCC_WARN_ALLOW_INCOMPLETE_PROTOCOL = NO;
- GCC_WARN_PEDANTIC = NO;
+ GCC_WARN_MISSING_PARENTHESES = YES;
+ GCC_WARN_PEDANTIC = YES;
+ GCC_WARN_UNUSED_FUNCTION = YES;
+ GCC_WARN_UNUSED_PARAMETER = NO;
+ GCC_WARN_UNUSED_VALUE = YES;
GCC_WARN_UNUSED_VARIABLE = YES;
- OTHER_CPLUSPLUSFLAGS = "";
+ OTHER_CPLUSPLUSFLAGS = (
+ "-ansi",
+ "-pedantic",
+ "-wall",
+ );
PREBINDING = NO;
SDKROOT = "$(DEVELOPER_SDK_DIR)/MacOSX10.5.sdk";
WARNING_CFLAGS = "";
string candidateName, templateName;
- while(d=blastFile.get() != '='){}
+ while((d=blastFile.get()) != '='){}
blastFile >> candidateName; // Get the candidate sequence name from flatfile
- while(d=blastFile.get() != '('){}
+ while((d=blastFile.get()) != '('){}
blastFile >> candidateLength; // Get the candidate sequence length from flatfile
- while(d=blastFile.get()){
+ while((d=blastFile.get())){
if(d == '>'){
blastFile >> templateName; // Get the template sequence name from flatfile
break;
}
}
- while(d=blastFile.get() != '='){}
+ while((d=blastFile.get()) != '='){}
blastFile >> templateLength; // Get the template sequence length from flatfile
- while(d=blastFile.get() != 'Q'){} // Suck up everything else until we get to the start of the alignment
+ while((d=blastFile.get()) != 'Q'){} // Suck up everything else until we get to the start of the alignment
int queryStart, sbjctStart, queryEnd, sbjctEnd;
string queryLabel, sbjctLabel, query, sbjct;
while(queryLabel == "Query:"){
blastFile >> queryStart >> query >> queryEnd;
- while(d=blastFile.get() != 'S'){};
+ while((d=blastFile.get()) != 'S'){};
blastFile >> sbjctLabel >> sbjctStart >> sbjct >> sbjctEnd;
pref[i].leftParent[1] = "";
pref[i].rightParent[1] = "";
}
-
-//cout << "in generate left.size() = " << left.size() << endl;
+
for (int i = 0; i < left.size(); i++) {
SeqMap currentLeft = left[i]; //example i = 3; currentLeft is a map of 0 to the distance of sequence 3 to sequence 0,
}
ci = 1.96 * sqrt(ci - jack);
}
- else if(k=1){
+ else if(k==1){
jack = N[1];
ci = 1.96*sqrt(variance[1]);
}else{
#endif
-typedef unsigned long long ull;
+typedef unsigned long ull;
struct IntNode {
int lvalue;
void NameAssignment::print(void){
try {
- map<string,int>::iterator it = (*this).begin();
- for(it;it!=(*this).end();it++){
+ map<string,int>::iterator it;
+ for(it = (*this).begin(); it!=(*this).end(); it++){
mothurOut(it->first + "\t" + toString(it->second)); mothurOutEndLine(); //prints out keys and values of the map this.
}
}
errorOut(e, "Shen", "getValues");
exit(1);
}
-};
+}
/***********************************************************************/