Skip to content

Commit

Permalink
Merge pull request #320 from jmarshall/warnings4
Browse files Browse the repository at this point in the history
Minor warning fixes
  • Loading branch information
arq5x committed Nov 9, 2015
2 parents e392a61 + 67aca77 commit 3d31735
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 deletions.
11 changes: 6 additions & 5 deletions src/split/splitBed.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@
******************************************************************************/
#include <cmath>
#include <climits>
#include <sstream>
#include <iomanip>
#include <inttypes.h>
#include <getopt.h>
#include "lineFileUtilities.h"
Expand Down Expand Up @@ -145,11 +147,10 @@ int BedSplit::main(int argc,char** argv)

std::FILE* BedSplit::saveFileChunk(std::string& filename,size_t file_index)
{

char tmp[10];
filename.assign(this->outfileprefix);
sprintf(tmp,"%05d",(file_index+1));
filename.append(".").append(tmp).append(".bed");
ostringstream name;
name << this->outfileprefix << '.'
<< setfill('0') << setw(5) << file_index+1 << ".bed";
filename = name.str();
FILE* out = fopen(filename.c_str(),"w");

if(out==NULL)
Expand Down
4 changes: 2 additions & 2 deletions src/utils/FileRecordTools/Records/PlusFields.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,11 @@
#ifndef PLUSFIELDS_H_
#define PLUSFIELDS_H_

using namespace std;

#include "QuickString.h"
#include <vector>

using namespace std;

class SingleLineDelimTextFileReader;

class PlusFields {
Expand Down

0 comments on commit 3d31735

Please sign in to comment.