Skip to contentSkip to conversation

HACKING: Update status of format checking

PATCH Stefan Weil 1 participant 1 message Jan 24, 2011 1 message not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

#1 lore raw

Am 24.01.2011 18:40, schrieb Stefan Weil:

Quoted 21 lines

Hopefully all functions with printf like arguments now use format checking.

This was tested with default build configuration on linux and windows hosts (including some cross compilations), so chances are good that there remain few (if any) functions without format checking.

Therefore the last comment in HACKING is no longer valid but misleading.

---
  HACKING |    3 ---
  1 files changed, 0 insertions(+), 3 deletions(-)
HACKING +0 -0
index 6ba9d7e..3af53fd 100644

HACKING gcc's printf attribute directive in the prototype. · line 125

Quoted 6 lines
HACKING +0 -3
@@ -120,6 +120,3 @@ gcc's printf attribute directive in the prototype.
  This makes it so gcc's -Wformat and -Wformat-security options can do
  their jobs and cross-check format strings with the number and types
  of arguments.
-
-Currently many functions in QEMU are not following this rule but
-patches to add the attribute would be very much appreciated.

Sorry, I did not send this patch to qemu-devel for review.