Commit 17080976 authored by Dark Templar's avatar Dark Templar Committed by Albert Astals Cid

Fix -Wreturn-type warning for jpeg version check

Summary: See also: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87515

Test Plan:
Build gwenview with '-Werror=return-type' in CFLAGS/CXXFLAGS.
Without this patch cmake call should fail if clean build directory is used.
With this patch applied build should succeed.

Reviewers: ngraham, aacid

Tags: #gwenview

Differential Revision: https://phabricator.kde.org/D19993
parent 408d4c34
......@@ -18,7 +18,7 @@ file(WRITE ${JPEGLIB_VERSION_CHECK_PATH} "
#include <stdlib.h>
#include <jpeglib.h>
int main(void) { printf(\"%d\\\n\", JPEG_LIB_VERSION); }
int main(void) { printf(\"%d\\\n\", JPEG_LIB_VERSION); return 0; }
")
try_run(JPEGLIB_RUN_RESULT JPEGLIB_COMPILE_RESULT
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment