FreeBSD Bugzilla – Attachment 178942 Details for
Bug 216033
[exp-run] Test use of clang nullability attributes in system headers
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
nonnull replacement and attribute removal patch
nullable-syslog.diff (text/plain), 1.71 KB, created by
Pedro F. Giffuni
on 2017-01-16 03:34:23 UTC
(
hide
)
Description:
nonnull replacement and attribute removal patch
Filename:
MIME Type:
Creator:
Pedro F. Giffuni
Created:
2017-01-16 03:34:23 UTC
Size:
1.71 KB
patch
obsolete
>Index: include/err.h >=================================================================== >--- include/err.h (revision 311011) >+++ include/err.h (working copy) >@@ -43,6 +43,11 @@ > #include <sys/cdefs.h> > #include <sys/_types.h> > >+#if defined(__clang__) >+#pragma clang diagnostic push >+#pragma clang diagnostic ignored "-Wnullability-completeness" >+#endif >+ > __BEGIN_DECLS > void err(int, const char *, ...) __dead2 __printf0like(2, 3); > void verr(int, const char *, __va_list) __dead2 __printf0like(2, 0); >@@ -58,7 +63,7 @@ > void warnx(const char *, ...) __printflike(1, 2); > void vwarnx(const char *, __va_list) __printflike(1, 0); > void err_set_file(void *); >-void err_set_exit(void (*)(int)); >+void err_set_exit(void (* _Nullable)(int)); > __END_DECLS > > #endif /* !_ERR_H_ */ >Index: sys/sys/syslog.h >=================================================================== >--- sys/sys/syslog.h (revision 311011) >+++ sys/sys/syslog.h (working copy) >@@ -33,6 +33,11 @@ > #ifndef _SYS_SYSLOG_H_ > #define _SYS_SYSLOG_H_ > >+#if defined(__clang__) >+#pragma clang diagnostic push >+#pragma clang diagnostic ignored "-Wnullability-completeness" >+#endif >+ > #define _PATH_LOG "/var/run/log" > #define _PATH_LOG_PRIV "/var/run/logpriv" > #define _PATH_OLDLOG "/dev/log" /* backward compatibility */ >@@ -190,11 +195,11 @@ > > __BEGIN_DECLS > void closelog(void); >-void openlog(const char *, int, int); >+void openlog(const char * _Nullable, int, int); > int setlogmask(int); >-void syslog(int, const char *, ...) __printflike(2, 3); >+void syslog(int, const char * _Nonnull, ...) __printflike(2, 3); > #if __BSD_VISIBLE >-void vsyslog(int, const char *, __va_list) __printflike(2, 0); >+void vsyslog(int, const char * _Nonnull, __va_list) __printflike(2, 0); > #endif > __END_DECLS >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 216033
:
178861
|
178870
|
178942
|
178943
|
179141