--- a/src/java.desktop/unix/native/libawt_xawt/xawt/XToolkit.c Fri Mar 02 19:10:12 2018 +0100
+++ b/src/java.desktop/unix/native/libawt_xawt/xawt/XToolkit.c Sat Mar 03 08:21:47 2018 +0100
@@ -316,7 +316,7 @@
{
}
-JNIEXPORT jboolean JNICALL AWTIsHeadless() {
+JNIEXPORT jboolean JNICALL AWTIsHeadless(void) {
#ifdef HEADLESS
return JNI_TRUE;
#else
@@ -407,7 +407,7 @@
// to 0).
static int32_t static_poll_timeout = 0;
-static Bool isMainThread() {
+static Bool isMainThread(void) {
return awt_MainThread == pthread_self();
}
@@ -417,7 +417,7 @@
* select() by writing to this pipe.
*/
static void
-awt_pipe_init() {
+awt_pipe_init(void) {
if (awt_pipe_inited) {
return;
@@ -450,7 +450,7 @@
/**
* Reads environment variables to initialize timeout fields.
*/
-static void readEnv() {
+static void readEnv(void) {
char * value;
int tmp_poll_alg;
static Boolean env_read = False;
@@ -717,7 +717,7 @@
* Schedules next auto-flush event or performs forced flush depending
* on the time of the previous flush.
*/
-void awt_output_flush() {
+void awt_output_flush(void) {
if (awt_next_flush_time == 0) {
JNIEnv *env = (JNIEnv *)JNU_GetEnv(jvm, JNI_VERSION_1_2);
@@ -744,7 +744,7 @@
/**
* Wakes-up poll() in performPoll
*/
-static void wakeUp() {
+static void wakeUp(void) {
static char wakeUp_char = 'p';
if (!isMainThread() && awt_pipe_inited) {
write ( AWT_WRITEPIPE, &wakeUp_char, 1 );
@@ -991,7 +991,7 @@
return num_buttons;
}
-int32_t getNumButtons() {
+int32_t getNumButtons(void) {
int32_t major_opcode, first_event, first_error;
int32_t xinputAvailable;
int32_t numDevices, devIdx, clsIdx;