Project

General

Profile

Actions

Bug #16254

open

expr: type of 'oper' defaults to 'int'

Added by Toomas Soome 12 days ago. Updated 12 days ago.

Status:
In Progress
Priority:
Normal
Assignee:
Category:
cmd - userland programs
Start date:
Due date:
% Done:

90%

Estimated time:
Difficulty:
Bite-size
Tags:
Gerrit CR:
External Bug:

Description

Build errors with modern options:

    expr.y: In function 'arith':
    expr.y:168:7: error: type of 'oper' defaults to 'int' [-Werror=implicit-int]
     char *arith(oper, r1, r2) char *r1, *r2;
           ^~~~~
    expr.y: In function 'conj':
    expr.y:203:7: error: type of 'oper' defaults to 'int' [-Werror=implicit-int]
     char *conj(oper, r1, r2) char *r1, *r2;
           ^~~~
    cc1: all warnings being treated as errors

    expr.c: In function 'rel':
    expr.c:169:2: error: type of 'oper' defaults to 'int' [-Werror=implicit-int]
     *rel(oper, r1, r2) register char *r1, *r2;
      ^~~
    expr.c: In function 'arith':
    expr.c:241:2: error: type of 'oper' defaults to 'int' [-Werror=implicit-int]
     *arith(oper, r1, r2) char *r1, *r2;
      ^~~~~
    expr.c: In function 'conj':
    expr.c:294:2: error: type of 'oper' defaults to 'int' [-Werror=implicit-int]
     *conj(oper, r1, r2)
      ^~~~
    cc1: all warnings being treated as errors

Actions #1

Updated by Electric Monk 12 days ago

  • Gerrit CR set to 3271
Actions #2

Updated by Toomas Soome 12 days ago

  • Description updated (diff)
Actions

Also available in: Atom PDF