Opened 9 years ago

Closed 9 years ago

Last modified 9 years ago

#3405 closed defect (invalid)

Fix "implicit declaration" of functions

Reported by: adrpo Owned by: lochel
Priority: high Milestone: never
Component: Code Generation Version: trunk
Keywords: Cc:

Description

It seems that the .h file we include doesn't contain some functions used.

The problem is that they end up being defined implicitly which means "int func" instead of "ptr_size func" which might cause problems.

See for example:
https://test.openmodelica.org/hudson/job/OpenModelica_BUILD_CLANG/lastBuild/consoleFull

IDA-LIU050+adrpo@ida-liu050 MINGW64 /f
$ fgrep "implicit declaration of" consoleText.txt
build/StateMachineFeatures.c:550:8: warning: implicit declaration of function 'boxptr_ExpressionDump_dumpExpStr' is invalid in C99 [-Wimplicit-function-declaration]
build/Patternm.c:8480:10: warning: implicit declaration of function 'omc_Ceval_ceval' is invalid in C99 [-Wimplicit-function-declaration]
build/Patternm.c:8481:12: warning: implicit declaration of function 'omc_ValuesUtil_valueExp' is invalid in C99 [-Wimplicit-function-declaration]
/run/shm/OpenModelica_BUILD_CLANG/OpenModelica-clang/OMCompiler/Compiler/boot/build/tmp/StateMachineFeatures.c:579:10: warning: implicit declaration of function 'boxptr_ExpressionDump_dumpExpStr' is invalid in C99 [-Wimplicit-function-declaration]

Change History (2)

comment:1 Changed 9 years ago by adrpo

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

This only happens for the code inside bootstrap-sources.tar.xz, not the generated code with the built compiler. Maybe we should update bootstrap-sources.tar.xz to the latest?

comment:2 Changed 9 years ago by dietmarw

  • Milestone changed from Future to never

Sorting away the closed as invalid, won't fix and duplicate tickets from Future.

Note: See TracTickets for help on using tickets.