Changeset 30cf6b0


Ignore:
Timestamp:
Oct 11, 2020, 10:29:06 AM (4 years ago)
Author:
Peter A. Buhr <pabuhr@…>
Branches:
ADT, arm-eh, ast-experimental, enum, forall-pointer-decay, jacob/cs343-translation, master, new-ast-unique-expr, pthread-emulation, qualifiedEnum
Children:
aa90b2c
Parents:
a33704d
Message:

remove incompatible-pointer-types warning because compilers do not generate consistent messages

Location:
tests
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • tests/.expect/init1.txt

    ra33704d r30cf6b0  
    1 init1.cfa: In function '_X1fFv___1':
    2 init1.cfa:43:69: warning: initialization of 'int (*)(int)' from incompatible pointer type 'void (*)()' [-Wincompatible-pointer-types]
    3 init1.cfa:44:29: warning: assignment to 'int (*)(int)' from incompatible pointer type 'void (*)()' [-Wincompatible-pointer-types]
    41init1.cfa: In function '_X4mainFi___1':
    5 init1.cfa:132:9: note: #pragma message: Compiled
     2init1.cfa:136:9: note: #pragma message: Compiled
  • tests/init1.cfa

    ra33704d r30cf6b0  
    1010// Created On       : Thu Jul 16 22:00:00 2020
    1111// Last Modified By : Peter A. Buhr
    12 // Last Modified On : Fri Oct  9 23:11:02 2020
    13 // Update Count     : 5
     12// Last Modified On : Sun Oct 11 10:26:50 2020
     13// Update Count     : 8
    1414//
    1515
     
    4141    const float * cpx2 = cpx;
    4242
     43    // FIX ME: Code gen not producing correct cast.
     44#pragma GCC diagnostic push
     45#pragma GCC diagnostic ignored "-Wincompatible-pointer-types"
    4346    int (* fp)( int ) = 0p;
    4447    fp = 0p;
     48#pragma GCC diagnostic pop
    4549
    4650    //
Note: See TracChangeset for help on using the changeset viewer.