aaronpuchert created this revision.
aaronpuchert added reviewers: aaron.ballman, arphaman, ddunbar, jkorous.
Herald added subscribers: cfe-commits, dexonsmith.
Herald added a project: clang.
When included in a C program, these function declarations are treated as
K&R declarations, which conveys no information about the number of
arguments of the function. A function with no arguments has to be
declared with parameter-type-list "void".


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D68187

Files:
  clang/include/clang-c/FatalErrorHandler.h


Index: clang/include/clang-c/FatalErrorHandler.h
===================================================================
--- clang/include/clang-c/FatalErrorHandler.h
+++ clang/include/clang-c/FatalErrorHandler.h
@@ -18,14 +18,14 @@
  * Installs error handler that prints error message to stderr and calls 
abort().
  * Replaces currently installed error handler (if any).
  */
-void clang_install_aborting_llvm_fatal_error_handler();
+void clang_install_aborting_llvm_fatal_error_handler(void);
 
 /**
  * Removes currently installed error handler (if any).
  * If no error handler is intalled, the default strategy is to print error
  * message to stderr and call exit(1).
  */
-void clang_uninstall_llvm_fatal_error_handler();
+void clang_uninstall_llvm_fatal_error_handler(void);
 
 #ifdef __cplusplus
 }


Index: clang/include/clang-c/FatalErrorHandler.h
===================================================================
--- clang/include/clang-c/FatalErrorHandler.h
+++ clang/include/clang-c/FatalErrorHandler.h
@@ -18,14 +18,14 @@
  * Installs error handler that prints error message to stderr and calls abort().
  * Replaces currently installed error handler (if any).
  */
-void clang_install_aborting_llvm_fatal_error_handler();
+void clang_install_aborting_llvm_fatal_error_handler(void);
 
 /**
  * Removes currently installed error handler (if any).
  * If no error handler is intalled, the default strategy is to print error
  * message to stderr and call exit(1).
  */
-void clang_uninstall_llvm_fatal_error_handler();
+void clang_uninstall_llvm_fatal_error_handler(void);
 
 #ifdef __cplusplus
 }
_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to