aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorEli Zaretskii2017-06-12 18:04:04 +0300
committerEli Zaretskii2017-06-12 18:04:04 +0300
commite6f47a9d6c5dcb1b7be3830381085412da9b10e6 (patch)
tree99c5882f1825b933d2f86bd7b86a31c6c379b734 /src
parentd29a9dae71395fccd419973e9c88f97af744581f (diff)
downloademacs-e6f47a9d6c5dcb1b7be3830381085412da9b10e6.tar.gz
emacs-e6f47a9d6c5dcb1b7be3830381085412da9b10e6.zip
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.
Diffstat (limited to 'src')
-rw-r--r--src/emacs-module.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/emacs-module.c b/src/emacs-module.c
index 6af9474025d..05ff9714ade 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)
345 ++count; 345 ++count;
346 prev = globals; 346 prev = globals;
347 } 347 }
348 module_abort ("Global value was not found in list of %td globals", 348 module_abort ("Global value was not found in list of %" pD "d globals",
349 count); 349 count);
350 } 350 }
351} 351}
@@ -827,7 +827,8 @@ module_assert_runtime (struct emacs_runtime *ert)
827 return; 827 return;
828 ++count; 828 ++count;
829 } 829 }
830 module_abort ("Runtime pointer not found in list of %td runtimes", count); 830 module_abort ("Runtime pointer not found in list of %" pD "d runtimes",
831 count);
831} 832}
832 833
833static void 834static void
@@ -843,7 +844,7 @@ module_assert_env (emacs_env *env)
843 return; 844 return;
844 ++count; 845 ++count;
845 } 846 }
846 module_abort ("Environment pointer not found in list of %td environments", 847 module_abort ("Environment pointer not found in list of %" pD "d environments",
847 count); 848 count);
848} 849}
849 850
@@ -962,7 +963,7 @@ value_to_lisp (emacs_value v)
962 } 963 }
963 ++num_environments; 964 ++num_environments;
964 } 965 }
965 module_abort ("Emacs value not found in %td values of %td environments", 966 module_abort ("Emacs value not found in %" pD "d values of %" pD "d environments",
966 num_values, num_environments); 967 num_values, num_environments);
967 } 968 }
968 969