Skip to content

Commit

Permalink
Enable -Wsentinel for TclX_AppendObjResult()
Browse files Browse the repository at this point in the history
  • Loading branch information
chrstphrchvz authored and bovine committed Jan 18, 2024
1 parent c056e34 commit 2917547
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions generic/tclExtend.h
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,10 @@ EXTERN void TclX_SplitWinCmdLine (int *argcPtr, char ***argvPtr);
/*
* Exported utility functions.
*/

#if defined(__GNUC__) && __GNUC__ >= 4
__attribute__((sentinel))
#endif
EXTERN void TclX_AppendObjResult TCL_VARARGS_DEF(Tcl_Interp *, interpArg);

EXTERN char * TclX_DownShift (char *targetStr, const char *sourceStr);
Expand Down

0 comments on commit 2917547

Please sign in to comment.