From: Wolfgang Bumiller Date: Wed, 29 May 2013 15:01:26 +0000 (+0200) Subject: make sure missing return values still warn X-Git-Tag: v0.3.0~151^2~33 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=a76702cb3631410194bf1e880c025e1255b81fa4;p=xonotic%2Fgmqcc.git make sure missing return values still warn --- diff --git a/tests/rassign.qc b/tests/rassign.qc index 69ec31c..f39b6ea 100644 --- a/tests/rassign.qc +++ b/tests/rassign.qc @@ -15,8 +15,10 @@ vector f_vector() { } string f_string() { +#ifndef FAIL_TEST return = "hello"; return = "world"; +#endif return; } diff --git a/tests/rassign.tmpl b/tests/rassign.tmpl index f169c82..948cb54 100644 --- a/tests/rassign.tmpl +++ b/tests/rassign.tmpl @@ -1,7 +1,7 @@ I: rassign.qc D: test return assignments T: -execute -C: -freturn-assignments +C: -fftepp -freturn-assignments M: 200 M: '200 200 200' M: world