Skip to content

Comments

Fix clang warnings about forward definitions#2

Open
lehenbauer wants to merge 4 commits intotpoindex:masterfrom
flightaware:master
Open

Fix clang warnings about forward definitions#2
lehenbauer wants to merge 4 commits intotpoindex:masterfrom
flightaware:master

Conversation

@lehenbauer
Copy link

TSP_Util_string_compare_const was forward-declared in TSP_util.c. A trivial reordering declares the function before its first call.

clang on FreeBSD was warning about forward definitions for srand48 and drand48 and this fixes that by importing stdlib.h, which should be pretty safe these days.

TSP_Util_string_compare_const was called before it was used without being forward-declared.  This puts the definition before its first use.
@lehenbauer
Copy link
Author

Also getting forward declaration warnings for Tcl_PushCallFrame and Tcl_PopCallFrame. Their names seem to indicate they should be defined in tcl.h, but they are defined in tclIntDecls.h.

@lehenbauer
Copy link
Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant