Make C API compatible with -Wstrict-prototypes
authorBrian Salomon <bsalomon@google.com>
Wed, 28 Dec 2016 20:56:16 +0000 (15:56 -0500)
committerSkia Commit-Bot <skia-commit-bot@chromium.org>
Tue, 3 Jan 2017 17:38:35 +0000 (17:38 +0000)
Change-Id: I265605e769a12a319d672c491c9ba2d89c02de7e
Reviewed-on: https://skia-review.googlesource.com/6477
Reviewed-by: Hal Canary <halcanary@google.com>
Commit-Queue: Brian Salomon <bsalomon@google.com>

include/c/sk_data.h
include/c/sk_paint.h
include/c/sk_path.h
include/c/sk_picture.h
include/c/sk_types.h

index 90333bb..863c619 100644 (file)
@@ -19,7 +19,7 @@ SK_C_PLUS_PLUS_BEGIN_GUARD
     Returns a new empty sk_data_t.  This call must be balanced with a call to
     sk_data_unref().
 */
-SK_API sk_data_t* sk_data_new_empty();
+SK_API sk_data_t* sk_data_new_empty(void);
 /**
     Returns a new sk_data_t by copying the specified source data.
     This call must be balanced with a call to sk_data_unref().
index e0886ad..ef7e624 100644 (file)
@@ -28,7 +28,7 @@ SK_C_PLUS_PLUS_BEGIN_GUARD
         maskfilter : NULL
         xfermode_mode : SRCOVER_SK_XFERMODE_MODE
 */
-SK_API sk_paint_t* sk_paint_new();
+SK_API sk_paint_t* sk_paint_new(void);
 /**
     Release the memory storing the sk_paint_t and unref() all
     associated objects.
index 6b4e83d..74abca0 100644 (file)
@@ -21,7 +21,7 @@ typedef enum {
 } sk_path_direction_t;
 
 /** Create a new, empty path. */
-SK_API sk_path_t* sk_path_new();
+SK_API sk_path_t* sk_path_new(void);
 /** Release the memory used by a sk_path_t. */
 SK_API void sk_path_delete(sk_path_t*);
 
index 338b7d9..7a03214 100644 (file)
@@ -19,7 +19,7 @@ SK_C_PLUS_PLUS_BEGIN_GUARD
     Create a new sk_picture_recorder_t.  Its resources should be
     released with a call to sk_picture_recorder_delete().
 */
-sk_picture_recorder_t* sk_picture_recorder_new();
+sk_picture_recorder_t* sk_picture_recorder_new(void);
 /**
     Release the memory and other resources used by this
     sk_picture_recorder_t.
index baa3ac9..344259f 100644 (file)
@@ -81,7 +81,7 @@ typedef enum {
 /**
     Return the default sk_colortype_t; this is operating-system dependent.
 */
-SK_API sk_colortype_t sk_colortype_get_default_8888();
+SK_API sk_colortype_t sk_colortype_get_default_8888(void);
 
 typedef struct {
     int32_t         width;