Opened 8 months ago

Closed 4 months ago

#1438 closed defect (fixed)

clang warnings

Reported by: mario Owned by:
Priority: minor Milestone: 5.0
Component: compiler Version: 5.0
Keywords: clag, warnings Cc:
Estimated difficulty:

Description

clang emits some warnings when compiling CHICKEN 5 and code generated by chicken.

See https://salmonella-freebsd-x86-64.call-cc.org/master/clang/freebsd/x86-64/2018/01/02/run-salmonella.logz and https://salmonella-freebsd-x86-64.call-cc.org/master/clang/freebsd/x86-64/2018/01/02/salmonella-report/install/binary-search.html for examples:

In file included from extras.c:9:
./chicken.h:2411:37: warning: expression result unused [-Wunused-value]
    C_CHECKp(x,C_bignump(C_VAL1(x)),0);
                                    ^
./chicken.h:858:37: note: expanded from macro 'C_CHECKp'
# define C_CHECKp(v,a,x)           (x)
                                    ^
1 warning generated.

Change History (2)

comment:1 Changed 4 months ago by mario

  • Milestone changed from someday to 5.0

comment:2 Changed 4 months ago by kooda

  • Resolution set to fixed
  • Status changed from new to closed

Fixed by 701ab0dda7fc15165e6335fd0ad33d58f084ff90

Note: See TracTickets for help on using tickets.