diff --git a/meson.build b/meson.build
index 494193483079..f1fcb8e20e00 100644
--- a/meson.build
+++ b/meson.build
@@ -7,6 +7,18 @@ project('libcamera - supporting complex camera pipelines', 'c', 'cpp',
 #	generated from this too.
 api_version = '0.1'
 
+common_arguments = [
+	'-Wall',
+	'-Wextra',
+	'-Werror',
+]
+
+c_arguments = common_arguments
+cpp_arguments = common_arguments
+
+add_project_arguments(c_arguments, language: 'c')
+add_project_arguments(cpp_arguments, language: 'cpp')
+
 inc = include_directories('include')
 
 subdir('Documentation')
