CTSRD-CHERI / clang

DO NOT USE. Use llvm-project instead
Other
9 stars 8 forks source link

Need -Wold-style-declerations #103

Closed brooksdavis closed 5 years ago

brooksdavis commented 8 years ago

@rwatson has reported that functions declared without arguments result in unusable functions. We should implement the equivalent of gcc's -Wold-style-declerations and make it an error in pure-capability mode.

There's an llvm that has seen no action we'll probably need to do it https://llvm.org/bugs/show_bug.cgi?id=10486

rwatson commented 8 years ago

The example I encountered was a header file in less(1), in which all function prototypes are K&R, and none work in CheriABI.

arichardson commented 5 years ago

We have -Wmips-cheri-prototypes for this now.