projects
/
ghc-hetmet.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix build on Windows
[ghc-hetmet.git]
/
driver
/
utils
/
cwrapper.c
diff --git
a/driver/utils/cwrapper.c
b/driver/utils/cwrapper.c
index
6a58114
..
cf763a2
100644
(file)
--- a/
driver/utils/cwrapper.c
+++ b/
driver/utils/cwrapper.c
@@
-54,7
+54,6
@@
char *mkString(const char *fmt, ...) {
char *quote(char *str) {
char *quotedStr;
char *p;
char *quote(char *str) {
char *quotedStr;
char *p;
- int i;
quotedStr = malloc(2 * strlen(str) + 2 + 1);
if (quotedStr == NULL) {
quotedStr = malloc(2 * strlen(str) + 2 + 1);
if (quotedStr == NULL) {
@@
-74,7
+73,7
@@
char *quote(char *str) {
return quotedStr;
}
return quotedStr;
}
-int run(char *exePath, int numArgs1, char **args1, int numArgs2, char **args2) {
+__attribute__((noreturn)) int run(char *exePath, int numArgs1, char **args1, int numArgs2, char **args2) {
char **p;
char **newArgv;
int i, ret;
char **p;
char **newArgv;
int i, ret;