Skip to content

Commit 0e90a97

Browse files
committed
fix -Wreturn-type compiler warnings in DEV7Launcher
1 parent 1791ba0 commit 0e90a97

1 file changed

Lines changed: 9 additions & 3 deletions

File tree

tools/DEV7Launcher/DEV7Launcher.cpp

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -86,10 +86,11 @@ int modifyMDOIni() {
8686
int mdoIni = system("notepad mdo.ini");
8787
#else
8888
execlp("nano", "nano", "mdo.ini", NULL);
89+
return 1;
8990
#endif
9091
}
9192

92-
uint showMSGDef() {
93+
int showMSGDef() {
9394
// Check if mdo.ini exists
9495
if (!fs::exists("msg.def")) {
9596
std::cout << "Error: This directory does not seem to contain an debug configuration file in the directory.\n" << std::endl;
@@ -100,22 +101,24 @@ uint showMSGDef() {
100101
int showMsgDef = system("notepad msg.def");
101102
#else
102103
execlp("nano", "nano", "msg.def", NULL);
104+
return 1;
103105
#endif
104106
}
105107

106-
void modifyMDODbg() {
108+
int modifyMDODbg() {
107109
std::string mdo_dbg = "MDO.DBG";
108110

109111
if (!fileExists(mdo_dbg)) {
110112
std::cout << "Error: " << mdo_dbg << " not found in the directory.\n" << std::endl;
111113
TaskExecution::pressEnterToExit();
112-
return;
114+
return 1;
113115
}
114116

115117
#ifdef _WIN32
116118
int mdoDBG = system("notepad MDO.DBG");
117119
#else
118120
execlp("nano", "nano", "MDO.DBG", NULL);
121+
return 1;
119122
#endif
120123
}
121124

@@ -131,6 +134,7 @@ int showTraceTXT() {
131134
int traceTXT = system("notepad Trace.txt");
132135
#else
133136
execlp("nano", "nano", "Trace.txt", NULL);
137+
return 1;
134138
#endif
135139
}
136140

@@ -155,6 +159,7 @@ int modifyAdibou3Ini() {
155159
int moveAdibou3Ini = system("mv ADIBOU3.INI Adibou3.ini");
156160
}
157161
execlp("nano", "nano", "Adibou3.ini", NULL);
162+
return 1;
158163
#endif
159164
}
160165

@@ -171,6 +176,7 @@ int modifyAdi5Ini() {
171176
int editAdi5Ini = system("notepad Data/ADI5.ini");
172177
#else
173178
execlp("nano", "nano", "Data/ADI5.ini", NULL);
179+
return 1;
174180
#endif
175181
}
176182

0 commit comments

Comments
 (0)