Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compile warning fix #1

Open
orkim opened this issue Oct 7, 2014 · 0 comments
Open

Compile warning fix #1

orkim opened this issue Oct 7, 2014 · 0 comments

Comments

@orkim
Copy link

orkim commented Oct 7, 2014

On compile in the /code/ directory with a newer compiler you will get:

compiling DvRecorder.c
src/dvr/DvRecorder.c: In function ‘DvRecorder_RestorePrograms’:
src/dvr/DvRecorder.c:39:1: error: C++ style comments are not allowed in ISO C90 [-Werror]
// programs = programs;
^
src/dvr/DvRecorder.c:39:1: error: (this will be reported only once per input file) [-Werror]
cc1: all warnings being treated as errors
make[1]: *** [objs/src/dvr/DvRecorder.o] Error 1
make[1]: Leaving directory `/home/dmiller/scratch/tddec-code/code'
make: *** [all] Error 2

Changing from C++ style comments to C style fixes.

⟫ gcc --version
gcc (Ubuntu 4.8.2-19ubuntu1) 4.8.2
Copyright (C) 2013 Free Software Foundation, Inc.

diff --git a/code/src/dvr/DvRecorder.c b/code/src/dvr/DvRecorder.c
index db06bb1..2ad9745 100644
--- a/code/src/dvr/DvRecorder.c
+++ b/code/src/dvr/DvRecorder.c
@@ -36,7 +36,7 @@ void DvrRecorder_Create(void)

void DvRecorder_RestorePrograms(DvRecorder * programs)
{
-// programs = programs;
+/* programs = programs;*/
}

void DvRecorder_Destroy(void)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant