[hackers] [scc] [tests] Fix 0041-queen.c || Roberto E. Vargas Caballero

From: <git_AT_suckless.org>
Date: Mon, 26 Sep 2016 12:54:00 +0200 (CEST)

commit a237a1813e294b9c3a41d4e06c2f5d678b194a28
Author: Roberto E. Vargas Caballero <roberto.vargas_AT_igrid-td.com>
AuthorDate: Mon Sep 26 12:51:22 2016 +0200
Commit: Roberto E. Vargas Caballero <roberto.vargas_AT_igrid-td.com>
CommitDate: Mon Sep 26 12:51:22 2016 +0200

    [tests] Fix 0041-queen.c
    
    The function Go was of type int, but it was not returning anything,
    although the returned value was not used for anything, so the
    behaviour of this function is totally defined. At this moment
    QBE does not support returning from a function that return something
    without returning something, and since it is not an important point
    for this test, it is better to add an implicit 0.

diff --git a/tests/0041-queen.c b/tests/0041-queen.c
index 2cb39e6..32e1c4c 100644
--- a/tests/0041-queen.c
+++ b/tests/0041-queen.c
_AT_@ -41,6 +41,7 @@ go(int n, int x, int y)
                         }
                 x = 0;
         }
+ return 0;
 }
 
 int
Received on Mon Sep 26 2016 - 12:54:00 CEST

This archive was generated by hypermail 2.3.0 : Mon Sep 26 2016 - 13:00:16 CEST