diff options
author | mseaborn@chromium.org <mseaborn@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-11-29 02:05:31 +0000 |
---|---|---|
committer | mseaborn@chromium.org <mseaborn@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-11-29 02:05:31 +0000 |
commit | 32eb1c5336c83a75267c9773b323817e9992aa51 (patch) | |
tree | 992ed77be53d6362a20957fb6f8095fe0953f0ad /ppapi/c/ppb_image_data.h | |
parent | d1e9d39661446283343f6a445ee9863959b0e0ae (diff) | |
download | chromium_src-32eb1c5336c83a75267c9773b323817e9992aa51.zip chromium_src-32eb1c5336c83a75267c9773b323817e9992aa51.tar.gz chromium_src-32eb1c5336c83a75267c9773b323817e9992aa51.tar.bz2 |
Make PPAPI headers compilable with -Wstrict-prototypes
This changes the PPAPI headers to use "foo(void)" rather than "foo()"
in function prototypes and definitions.
In C (but not C++), "foo()" declares a function with unspecified
arguments, which allows foo to be called with excess arguments or
implemented with excess arguments. Using "foo(void)" is more correct
and will prevent such mistakes. GCC's -Wstrict-prototypes warning
requires using "foo(void)", and we'd like to turn this warning on for
NaCl C code.
BUG= https://code.google.com/p/nativeclient/issues/detail?id=3114
TEST= rerun ppapi/generators/generator.py + compile
Review URL: https://codereview.chromium.org/11419192
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@170120 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ppapi/c/ppb_image_data.h')
-rw-r--r-- | ppapi/c/ppb_image_data.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ppapi/c/ppb_image_data.h b/ppapi/c/ppb_image_data.h index 8879dc6..fb091d7 100644 --- a/ppapi/c/ppb_image_data.h +++ b/ppapi/c/ppb_image_data.h @@ -3,7 +3,7 @@ * found in the LICENSE file. */ -/* From ppb_image_data.idl modified Wed Oct 31 10:35:03 2012. */ +/* From ppb_image_data.idl modified Tue Nov 13 08:48:25 2012. */ #ifndef PPAPI_C_PPB_IMAGE_DATA_H_ #define PPAPI_C_PPB_IMAGE_DATA_H_ @@ -114,7 +114,7 @@ struct PPB_ImageData_1_0 { * * @return A <code>PP_ImageDataFormat</code> containing the preferred format. */ - PP_ImageDataFormat (*GetNativeImageDataFormat)(); + PP_ImageDataFormat (*GetNativeImageDataFormat)(void); /** * IsImageDataFormatSupported() determines if the given image data format is * supported by the browser. Note: <code>PP_IMAGEDATAFORMAT_BGRA_PREMUL</code> |