Skip to content
Snippets Groups Projects
Commit 177f3631 authored by Sébastien Patte's avatar Sébastien Patte Committed by Allan Blanchard
Browse files

[Variadic] Improve warning message about intmax_t and fix issue with %lc

parent 710db21d
No related branches found
No related tags found
No related merge requests found
...@@ -65,7 +65,7 @@ let type_f_specifier ?find_typedef spec = ...@@ -65,7 +65,7 @@ let type_f_specifier ?find_typedef spec =
| #float_specifier, Some `l -> Cil.doubleType | #float_specifier, Some `l -> Cil.doubleType
| #float_specifier, Some `L -> Cil.longDoubleType | #float_specifier, Some `L -> Cil.longDoubleType
| `c, None -> Cil.intType | `c, None -> Cil.intType
| `c, Some `l -> get_typedef ?find_typedef "intmax_t" | `c, Some `l -> get_typedef ?find_typedef "wchar_t"
| `s, None -> Cil.charPtrType | `s, None -> Cil.charPtrType
| `s, Some `l -> ptr (get_typedef ?find_typedef "wchar_t") | `s, Some `l -> ptr (get_typedef ?find_typedef "wchar_t")
| `p, None -> Cil.voidPtrType | `p, None -> Cil.voidPtrType
......
...@@ -731,13 +731,13 @@ let format_fun_call ~builder env format_fun vf args = ...@@ -731,13 +731,13 @@ let format_fun_call ~builder env format_fun vf args =
let tvparams = let tvparams =
try try
Format_typer.type_format ~find_typedef format Format_typer.type_format ~find_typedef format
with Format_typer.Type_not_found type_name -> with Format_typer.Type_not_found (type_name) ->
Self.warning ~current:true Self.warning ~current:true
"Unable to find type %s in the source code which should be used in \ "Unable to find type %s in the source code which should be used in \
this call:@ no specification will be generated.@ \ this call:@ no specification will be generated.@ \
Note that due to cleanup, the type may have been defined in the \ Note that due to cleanup, the type may have been defined in the \
original code but not used anywhere." original code but not used anywhere.@.\
type_name; Did you include <stdint.h> ?" type_name;
raise (Translate_call_exn vf.vf_decl) raise (Translate_call_exn vf.vf_decl)
in in
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment