emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] master e6f47a9: Avoid compilation warnings with pre-C99 li


From: Eli Zaretskii
Subject: [Emacs-diffs] master e6f47a9: Avoid compilation warnings with pre-C99 libc
Date: Mon, 12 Jun 2017 11:05:20 -0400 (EDT)

branch: master
commit e6f47a9d6c5dcb1b7be3830381085412da9b10e6
Author: Eli Zaretskii <address@hidden>
Commit: Eli Zaretskii <address@hidden>

    Avoid compilation warnings with pre-C99 libc
    
    * src/emacs-module.c (module_free_global_ref)
    (module_assert_runtime, module_assert_env, value_to_lisp): Use 'pD'
    instead of C99 't' format descriptor.
---
 src/emacs-module.c | 9 +++++----
 1 file changed, 5 insertions(+), 4 deletions(-)

diff --git a/src/emacs-module.c b/src/emacs-module.c
index 6af9474..05ff971 100644
--- a/src/emacs-module.c
+++ b/src/emacs-module.c
@@ -345,7 +345,7 @@ module_free_global_ref (emacs_env *env, emacs_value ref)
           ++count;
           prev = globals;
         }
-      module_abort ("Global value was not found in list of %td globals",
+      module_abort ("Global value was not found in list of %" pD "d globals",
                     count);
     }
 }
@@ -827,7 +827,8 @@ module_assert_runtime (struct emacs_runtime *ert)
         return;
       ++count;
     }
-  module_abort ("Runtime pointer not found in list of %td runtimes", count);
+  module_abort ("Runtime pointer not found in list of %" pD "d runtimes",
+               count);
 }
 
 static void
@@ -843,7 +844,7 @@ module_assert_env (emacs_env *env)
         return;
       ++count;
     }
-  module_abort ("Environment pointer not found in list of %td environments",
+  module_abort ("Environment pointer not found in list of %" pD "d 
environments",
                 count);
 }
 
@@ -962,7 +963,7 @@ value_to_lisp (emacs_value v)
             }
           ++num_environments;
         }
-      module_abort ("Emacs value not found in %td values of %td environments",
+      module_abort ("Emacs value not found in %" pD "d values of %" pD "d 
environments",
                     num_values, num_environments);
     }
 



reply via email to

[Prev in Thread] Current Thread [Next in Thread]