Changeset 7959e56 for tests/Makefile.am


Ignore:
Timestamp:
Feb 3, 2025, 1:27:20 PM (12 months ago)
Author:
Michael Brooks <mlbrooks@…>
Branches:
master
Children:
dfe8f78
Parents:
59fdd0d
Message:

Eliminate libcfa-build warnings of missing int-to-pointer casts.

Replace a zero_t variable use with literal 0 when it's an argument to an intrinsic and we're generating final C code. Partially revert e0330d2cd1a. Such intrinsics are initialization/assignment of pointers; using the variable implies a missing cast, while using literal 0 needs no cast.

CodeGenerator.hpp
CodeGenerator.cpp

Put attibute unused on all zero_t/one_t object decls. It is needed on those whose uses are rewritten by the rule above.

Generate.cpp

File:
1 edited

Legend:

Unmodified
Added
Removed
  • tests/Makefile.am

    r59fdd0d r7959e56  
    354354        -cp ${test} ${abspath ${@}}
    355355
     356zero_one-ERR1 : zero_one.cfa ${CFACCBIN}
     357        ${CFACOMPILE_SYNTAX} -DERR1
     358        -cp ${test} ${abspath ${@}}
     359
    356360ctrl-flow/loop_else : ctrl-flow/loop_else.cfa ${CFACCBIN}
    357361        ${CC} ${AM_CFLAGS} -Wno-superfluous-else $< -o $@
Note: See TracChangeset for help on using the changeset viewer.