~john-koepi/ubuntu/trusty/golang/default

« back to all changes in this revision

Viewing changes to src/cmd/cc/com.c

  • Committer: Bazaar Package Importer
  • Author(s): Ondřej Surý
  • Date: 2011-08-03 17:04:59 UTC
  • mfrom: (14.1.2 sid)
  • Revision ID: james.westby@ubuntu.com-20110803170459-wzd99m3567y80ila
Tags: 1:59-1
* Imported Upstream version 59
* Refresh patches to a new release
* Fix FTBFS on ARM (Closes: #634270)
* Update version.bash to work with Debian packaging and not hg
  repository

Show diffs side-by-side

added added

removed removed

Lines of Context:
28
28
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
29
29
// THE SOFTWARE.
30
30
 
 
31
#include <u.h>
31
32
#include "cc.h"
32
33
 
33
34
int compar(Node*, int);
127
128
        case ORETURN:
128
129
                if(l == Z) {
129
130
                        if(n->type->etype != TVOID)
130
 
                                warn(n, "null return of a typed function");
 
131
                                diag(n, "null return of a typed function");
131
132
                        break;
132
133
                }
133
134
                if(tcom(l))