@@ -163,8 +163,8 @@ namespace graphchi {
163
163
164
164
165
165
// http://www.linuxquestions.org/questions/programming-9/c-list-files-in-directory-379323/
166
- int getdir (std::string dir, std::vector<std::string> &files);
167
- int getdir (std::string dir, std::vector<std::string> &files)
166
+ static int VARIABLE_IS_NOT_USED getdir (std::string dir, std::vector<std::string> &files);
167
+ static int VARIABLE_IS_NOT_USED getdir (std::string dir, std::vector<std::string> &files)
168
168
{
169
169
DIR *dp;
170
170
struct dirent *dirp;
@@ -180,8 +180,8 @@ namespace graphchi {
180
180
return 0 ;
181
181
}
182
182
183
- std::string get_dirname (std::string arg);
184
- std::string get_dirname (std::string arg) {
183
+ static VARIABLE_IS_NOT_USED std::string get_dirname (std::string arg);
184
+ static VARIABLE_IS_NOT_USED std::string get_dirname (std::string arg) {
185
185
size_t a = arg.find_last_of (" /" );
186
186
if (a != arg.npos ) {
187
187
std::string dir = arg.substr (0 , a);
@@ -192,8 +192,8 @@ namespace graphchi {
192
192
}
193
193
}
194
194
195
- std::string get_filename (std::string arg);
196
- std::string get_filename (std::string arg) {
195
+ static std::string VARIABLE_IS_NOT_USED get_filename (std::string arg);
196
+ static std::string VARIABLE_IS_NOT_USED get_filename (std::string arg) {
197
197
size_t a = arg.find_last_of (" /" );
198
198
if (a != arg.npos ) {
199
199
std::string f = arg.substr (a + 1 );
@@ -354,7 +354,8 @@ namespace graphchi {
354
354
* @param[in] line line from input file containing node indices
355
355
* @param[out] adjacencies node indices extracted from line
356
356
*/
357
- static std::vector<vid_t > parseLine (std::string line) {
357
+ static std::vector<vid_t > VARIABLE_IS_NOT_USED parseLine (std::string line);
358
+ static std::vector<vid_t > VARIABLE_IS_NOT_USED parseLine (std::string line) {
358
359
359
360
std::stringstream stream (line);
360
361
std::string token;
@@ -657,8 +658,8 @@ namespace graphchi {
657
658
* Converts a graph input to shards with no edge values. Preprocessing has several steps,
658
659
* see sharder.hpp for more information.
659
660
*/
660
- int convert_none (std::string basefilename, std::string nshards_string);
661
- int convert_none (std::string basefilename, std::string nshards_string) {
661
+ static int VARIABLE_IS_NOT_USED convert_none (std::string basefilename, std::string nshards_string);
662
+ static int VARIABLE_IS_NOT_USED convert_none (std::string basefilename, std::string nshards_string) {
662
663
sharder<dummy> sharderobj (basefilename);
663
664
sharderobj.set_no_edgevalues ();
664
665
0 commit comments